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:
1 parent
bff5b00a09
commit
aa56b4dd30
5 files changed
+63
-10
No files matched your search
@@ -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() == []
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user