Repository navigation
Fix onAnyLocationUpdated GraphQL subscription and mapping - #501
Merged
ic-dev21 merged 1 commit intoNov 21, 2026
Merged
Conversation
`GraphQlHelper.subscribe_to_location_updated` already exists in `python-hilo`, but any consumer that calls it cannot receive location-wide `connectionStatus` updates: the query selects fields that no longer match Hilo's Digital-Twin `LocationSubscription` schema, the mapper routes partial location payloads through full device builders that require `deviceType` and telemetry fields, and the handler returns the location ID instead of the updated devices' `hilo_id`s. Update `SUBSCRIPTION_LOCATION_UPDATED` and `map_location_subscription_values` to match Hilo's Digital-Twin schema (skipping unmigrated `BasicDevice` stubs so null statuses do not overwrite SignalR-managed devices, and keeping Gateway `onlineStatus` in sync), and have subscription handlers return all updated device `hilo_id`s so callers receive a callback for every affected device. Note: `subscribe_to_location_updated` is not currently used by the `hilo` Home Assistant integration, so removing (or deprecating) this code path instead is also an option if maintainers prefer not to keep it.
Moustachauve
marked this pull request as ready for review
November 20, 2026 04:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GraphQlHelper.subscribe_to_location_updatedalready exists inpython-hilo, but any consumer that calls it cannot receive location-wideconnectionStatusupdates: the query selects fields that no longer match Hilo's Digital-TwinLocationSubscriptionschema, the mapper routes partial location payloads through full device builders that requiredeviceTypeand telemetry fields, and the handler returns the location ID instead of the updated devices'hilo_ids.Update
SUBSCRIPTION_LOCATION_UPDATEDandmap_location_subscription_valuesto match Hilo's Digital-Twin schema (skipping unmigratedBasicDevicestubs so null statuses do not overwrite SignalR-managed devices, and keeping GatewayonlineStatusin sync), and have subscription handlers return all updated devicehilo_ids so callers receive a callback for every affected device.Note:
subscribe_to_location_updatedis not currently used by thehiloHome Assistant integration, so removing (or deprecating) this code path instead is also an option if maintainers prefer not to keep it.