Skip to content

Fix ScheduleType.schedule_sub_type reading the wrong JSON key#166

Open
clutch2sft wants to merge 1 commit into
timmo001:masterfrom
clutch2sft:fix/device-schedule-subtype
Open

Fix ScheduleType.schedule_sub_type reading the wrong JSON key#166
clutch2sft wants to merge 1 commit into
timmo001:masterfrom
clutch2sft:fix/device-schedule-subtype

Conversation

@clutch2sft

Copy link
Copy Markdown

Resideo's API returns "scheduleSubtype" (lowercase t) for both device and location responses, not "scheduleSubType". Found while auditing device.py for the same class of field-name mismatch fixed in the priority endpoint (#165). Not currently consumed anywhere in Home Assistant's lyric integration, so this was never visibly broken, but the fixtures encoded the same wrong key the code was reading, so the existing tests passed without ever catching it against a real response.

Resideo's API returns "scheduleSubtype" (lowercase t) for both device
and location responses, not "scheduleSubType". Found while auditing
device.py for the same class of field-name mismatch fixed in the
priority endpoint (timmo001#165). Not currently consumed anywhere in
Home Assistant's lyric integration, so this was never visibly broken,
but the fixtures encoded the same wrong key the code was reading, so
the existing tests passed without ever catching it against a real
response.
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.

1 participant