mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Use disabled_by constants (#49584)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
@@ -1345,7 +1345,7 @@ async def test_lights_can_be_enabled(hass: HomeAssistantType) -> None:
|
||||
entry = entity_registry.async_get(TEST_PRIORITY_LIGHT_ENTITY_ID_1)
|
||||
assert entry
|
||||
assert entry.disabled
|
||||
assert entry.disabled_by == "integration"
|
||||
assert entry.disabled_by == er.DISABLED_INTEGRATION
|
||||
entity_state = hass.states.get(TEST_PRIORITY_LIGHT_ENTITY_ID_1)
|
||||
assert not entity_state
|
||||
|
||||
|
||||
Reference in New Issue
Block a user