Fix KNX telegram device trigger not firing after integration reload (#107388)

This commit is contained in:
Matthias Alphart 2024-01-07 20:32:17 +01:00 committed by GitHub
parent 2a8444b245
commit a9b51f0255
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 8 deletions

View file

@ -150,7 +150,6 @@ async def test_remove_device_trigger(
},
)
assert len(hass.data[DOMAIN].telegrams._jobs) == 1
await knx.receive_write("0/0/1", (0x03, 0x2F))
assert len(calls) == 1
assert calls.pop().data["catch_all"] == "telegram - 0/0/1"
@ -161,8 +160,6 @@ async def test_remove_device_trigger(
{ATTR_ENTITY_ID: f"automation.{automation_name}"},
blocking=True,
)
assert len(hass.data[DOMAIN].telegrams._jobs) == 0
await knx.receive_write("0/0/1", (0x03, 0x2F))
assert len(calls) == 0