Use debouncer in mysensors (#84638)

* Use debouncer in mysensors

* Clean cover tests

* Fix debouncer mocking

* Follow typing
This commit is contained in:
Martin Hjelmare 2022-12-27 21:37:10 +01:00 committed by GitHub
parent 624c93bb38
commit d441fb2ec5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 31 additions and 159 deletions

View file

@ -36,9 +36,6 @@ async def test_relay_node(
assert transport_write.call_args == call("1;1;1;1;2;1\n")
receive_message("1;1;1;0;2;1\n")
# the integration adds multiple jobs to do the update currently
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done()
state = hass.states.get(entity_id)
@ -59,9 +56,6 @@ async def test_relay_node(
assert transport_write.call_args == call("1;1;1;1;2;0\n")
receive_message("1;1;1;0;2;0\n")
# the integration adds multiple jobs to do the update currently
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done()
state = hass.states.get(entity_id)
@ -96,9 +90,6 @@ async def test_ir_transceiver(
assert transport_write.call_args_list[1] == call("1;1;1;1;2;1\n")
receive_message("1;1;1;0;2;1\n")
# the integration adds multiple jobs to do the update currently
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done()
state = hass.states.get(entity_id)
@ -120,9 +111,6 @@ async def test_ir_transceiver(
assert transport_write.call_args == call("1;1;1;1;2;0\n")
receive_message("1;1;1;0;2;0\n")
# the integration adds multiple jobs to do the update currently
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done()
state = hass.states.get(entity_id)
@ -145,9 +133,6 @@ async def test_ir_transceiver(
receive_message("1;1;1;0;32;new_code\n")
receive_message("1;1;1;0;2;1\n")
# the integration adds multiple jobs to do the update currently
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done()
state = hass.states.get(entity_id)