1
0
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:
Jc2k
2020-01-11 00:33:48 +00:00
committed by Paulus Schoutsen
parent d6512c8a9f
commit 669c89e8c0
7 changed files with 300 additions and 4 deletions

View File

@@ -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