1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Use keywords for MQTT birth and will (#38040)

This commit is contained in:
Erik Montnemery
2020-07-21 23:10:34 +02:00
committed by GitHub
parent 908b72370b
commit fa0e12ffe8
2 changed files with 12 additions and 12 deletions

View File

@@ -799,13 +799,15 @@ async def test_no_birth_message(hass, mqtt_client_mock, mqtt_mock):
)
async def test_custom_will_message(hass, mqtt_client_mock, mqtt_mock):
"""Test will message."""
mqtt_client_mock.will_set.assert_called_with("death", "death", 0, False)
mqtt_client_mock.will_set.assert_called_with(
topic="death", payload="death", qos=0, retain=False
)
async def test_default_will_message(hass, mqtt_client_mock, mqtt_mock):
"""Test will message."""
mqtt_client_mock.will_set.assert_called_with(
"homeassistant/status", "offline", 0, False
topic="homeassistant/status", payload="offline", qos=0, retain=False
)