mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Don't create two zwave_js.lock entities for a single device (#68651)
This commit is contained in:
@@ -222,3 +222,8 @@ async def test_door_lock(hass, client, lock_schlage_be469, integration):
|
||||
|
||||
assert node.status == NodeStatus.DEAD
|
||||
assert hass.states.get(SCHLAGE_BE469_LOCK_ENTITY).state == STATE_UNAVAILABLE
|
||||
|
||||
|
||||
async def test_only_one_lock(hass, client, lock_home_connect_620, integration):
|
||||
"""Test node with both Door Lock and Lock CC values only gets one lock entity."""
|
||||
assert len(hass.states.async_entity_ids("lock")) == 1
|
||||
|
||||
Reference in New Issue
Block a user