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 authored and Paulus Schoutsen committed 2020-01-10 20:17:12 -08:00
1 parent f505310f11
commit 449e6841a7
7 files changed
+300 -4

No files matched your search

+1 -1
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