1
0
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:
Raman Gupta
2022-03-28 05:15:48 -04:00
committed by GitHub
parent aa7cb087a9
commit 9d14201b13
4 changed files with 11508 additions and 6 deletions

View File

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