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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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() == []