Log warning if disabled entities receive updates. (#26143)

* Log warning if disabled entities receive updates.

* Fix test

* Always set entity ID on disabled entities
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-08-22 14:12:24 -07:00
1 parent bff5b00a09
commit aa56b4dd30
5 files changed
+63 -10

No files matched your search

+1 -1
View File
@@ -491,7 +491,7 @@ async def test_registry_respect_entity_disabled(hass):
platform = MockEntityPlatform(hass)
entity = MockEntity(unique_id="1234")
await platform.async_add_entities([entity])
assert entity.entity_id is None
assert entity.entity_id == "test_domain.world"
assert hass.states.async_entity_ids() == []