You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
sensor.xfinity_gateway_mode, reporting Bridge or Router, reusing the same Bridge Message detection text ("in bridge mode") already used by binary_sensor.xfinity_gateway_bridge_mode. Icon switches between mdi:bridge and mdi:router depending on state.
Fixed
binary_sensor.xfinity_gateway_connectivity and binary_sensor.xfinity_gateway_lan_connection never actually reported device_class: connectivity. Both classes set _attr_device_class as a class attribute, but MultiscrapeEntity.__init__ unconditionally does self._attr_device_class = device_class from its own constructor parameter — which both classes called with None. That instance assignment ran after the class body, silently overwriting the class attribute back to None on every setup, so the entities always reported device_class: null regardless of source, on every version since v1.3.1. Fixed by passing the device class through the constructor instead.