1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

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
2019-08-22 14:12:24 -07:00
committed by GitHub
parent bff5b00a09
commit aa56b4dd30
5 changed files with 63 additions and 10 deletions

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() == []