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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user