mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Fix HomeKit with entity registry restoration where supported_features is a non-None falsey (#30657)
* Fix homekit with #30094 * Fix test
This commit is contained in:
@@ -511,7 +511,7 @@ async def test_restore_states(hass):
|
||||
simple = hass.states.get("light.simple")
|
||||
assert simple is not None
|
||||
assert simple.state == STATE_UNAVAILABLE
|
||||
assert simple.attributes == {"restored": True}
|
||||
assert simple.attributes == {"restored": True, "supported_features": 0}
|
||||
|
||||
disabled = hass.states.get("light.disabled")
|
||||
assert disabled is None
|
||||
|
||||
Reference in New Issue
Block a user