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:
@@ -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