fix mqtt siren test asserts (#113550)
This commit is contained in:
parent
397bde4652
commit
b261f124d6
1 changed files with 3 additions and 3 deletions
|
@ -832,7 +832,7 @@ async def test_command_templates(
|
|||
mqtt_mock.async_publish.assert_any_call(
|
||||
"test-topic", "CMD: ON, DURATION: 22, TONE: ping, VOLUME: 0.88", 0, False
|
||||
)
|
||||
mqtt_mock.async_publish.call_count == 1
|
||||
assert mqtt_mock.async_publish.call_count == 1
|
||||
mqtt_mock.reset_mock()
|
||||
await async_turn_off(
|
||||
hass,
|
||||
|
@ -841,7 +841,7 @@ async def test_command_templates(
|
|||
mqtt_mock.async_publish.assert_any_call(
|
||||
"test-topic", "CMD: OFF, DURATION: , TONE: , VOLUME:", 0, False
|
||||
)
|
||||
mqtt_mock.async_publish.call_count == 1
|
||||
assert mqtt_mock.async_publish.call_count == 1
|
||||
mqtt_mock.reset_mock()
|
||||
|
||||
await async_turn_on(
|
||||
|
@ -862,7 +862,7 @@ async def test_command_templates(
|
|||
entity_id="siren.milk",
|
||||
)
|
||||
mqtt_mock.async_publish.assert_any_call("test-topic", "CMD_OFF: OFF", 0, False)
|
||||
mqtt_mock.async_publish.call_count == 1
|
||||
assert mqtt_mock.async_publish.call_count == 2
|
||||
mqtt_mock.reset_mock()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue