mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 16:57:19 +00:00
Fix MQTT test
This commit is contained in:
parent
837b1384af
commit
7e47481676
@ -1378,7 +1378,7 @@ async def test_debug_info_same_topic(hass, mqtt_mock):
|
|||||||
]
|
]
|
||||||
|
|
||||||
start_dt = datetime(2019, 1, 1, 0, 0, 0)
|
start_dt = datetime(2019, 1, 1, 0, 0, 0)
|
||||||
with patch("homeassistant.util.dt.utcnow") as dt_utcnow:
|
with mock.patch("homeassistant.util.dt.utcnow") as dt_utcnow:
|
||||||
dt_utcnow.return_value = start_dt
|
dt_utcnow.return_value = start_dt
|
||||||
async_fire_mqtt_message(hass, "sensor/status", "123", qos=0, retain=False)
|
async_fire_mqtt_message(hass, "sensor/status", "123", qos=0, retain=False)
|
||||||
|
|
||||||
@ -1396,6 +1396,6 @@ async def test_debug_info_same_topic(hass, mqtt_mock):
|
|||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
start_dt = datetime(2019, 1, 1, 0, 0, 0)
|
start_dt = datetime(2019, 1, 1, 0, 0, 0)
|
||||||
with patch("homeassistant.util.dt.utcnow") as dt_utcnow:
|
with mock.patch("homeassistant.util.dt.utcnow") as dt_utcnow:
|
||||||
dt_utcnow.return_value = start_dt
|
dt_utcnow.return_value = start_dt
|
||||||
async_fire_mqtt_message(hass, "sensor/status", "123", qos=0, retain=False)
|
async_fire_mqtt_message(hass, "sensor/status", "123", qos=0, retain=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user