Fix for 0.98: Don't update disabled entities (Homematic IP Cloud) (#26236)

* Homematic IP Cloud Fix: Don't update disabled entities

* Added enabled to entity.py

* Update test for enabled

* Update entity.py
This commit is contained in:
SukramJ authored and Paulus Schoutsen committed 2019-08-28 13:38:20 -07:00
1 parent e69953fe2d
commit cf3bb300e6
3 files changed
+17 -2

No files matched your search

+2
View File
@@ -552,8 +552,10 @@ async def test_disabled_in_entity_registry(hass):
await hass.async_block_till_done()
assert entry2 != entry
assert ent.registry_entry == entry2
assert ent.enabled is True
entry3 = registry.async_update_entity("hello.world", disabled_by="user")
await hass.async_block_till_done()
assert entry3 != entry2
assert ent.registry_entry == entry3
assert ent.enabled is False