Skip to content

Add GraphQL mapper unit test and fix smart meter Zigbee channel - #477

Merged
ic-dev21 merged 3 commits into
mainfrom
bugfix/typo-in-graphql
Oct 26, 2026
Merged

ic-dev21 merged 3 commits into
mainfrom
bugfix/typo-in-graphql

Conversation

@ic-dev21

Copy link
Copy Markdown
Collaborator

The smart meter mapper checked for zigbeeChannel, but Hilo sends zigBeeChannel
(see doc/graphql/onAnyDeviceUpdated-meter.json), so the ZigbeeChannel
attribute was never reported for meters.

Adds a unit test that maps the captured meter payload, and fixes the key casing.

Connection-state handling (Disconnected) is left unchanged until we capture a
payload from a disconnected device.

Hilo nous retourne zigBeeChannel, petit typo.
@ic-dev21 ic-dev21 mentioned this pull request Oct 26, 2026
Ruff flags the missing trailing newline (W292). The pre-commit ruff hooks
only cover pyhilo/ today, so CI did not catch it; fixing it here keeps this
PR green once the hooks are extended to tests/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ic-dev21
ic-dev21 merged commit 5334c5f into main Oct 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants