Cleanup mqtt platform tests part 6 (last) (#120736)

This commit is contained in:
Jan Bouwhuis 2024-06-28 16:22:25 +02:00 committed by GitHub
parent d03a6f84a3
commit a8f4684929
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 109 additions and 442 deletions

View file

@ -379,11 +379,7 @@ async def test_update_with_json_attrs_not_dict(
) -> None:
"""Test attributes get extracted from a JSON result."""
await help_test_update_with_json_attrs_not_dict(
hass,
mqtt_mock_entry,
caplog,
switch.DOMAIN,
DEFAULT_CONFIG,
hass, mqtt_mock_entry, caplog, switch.DOMAIN, DEFAULT_CONFIG
)
@ -394,11 +390,7 @@ async def test_update_with_json_attrs_bad_json(
) -> None:
"""Test attributes get extracted from a JSON result."""
await help_test_update_with_json_attrs_bad_json(
hass,
mqtt_mock_entry,
caplog,
switch.DOMAIN,
DEFAULT_CONFIG,
hass, mqtt_mock_entry, caplog, switch.DOMAIN, DEFAULT_CONFIG
)
@ -524,8 +516,7 @@ async def test_discovery_update_switch_template(
async def test_discovery_update_unchanged_switch(
hass: HomeAssistant,
mqtt_mock_entry: MqttMockHAClientGenerator,
hass: HomeAssistant, mqtt_mock_entry: MqttMockHAClientGenerator
) -> None:
"""Test update of discovered switch."""
data1 = (
@ -675,8 +666,7 @@ async def test_publishing_with_custom_encoding(
async def test_reloadable(
hass: HomeAssistant,
mqtt_client_mock: MqttMockPahoClient,
hass: HomeAssistant, mqtt_client_mock: MqttMockPahoClient
) -> None:
"""Test reloading the MQTT platform."""
domain = switch.DOMAIN
@ -726,8 +716,7 @@ async def test_setup_manual_entity_from_yaml(
async def test_unload_entry(
hass: HomeAssistant,
mqtt_mock_entry: MqttMockHAClientGenerator,
hass: HomeAssistant, mqtt_mock_entry: MqttMockHAClientGenerator
) -> None:
"""Test unloading the config entry."""
domain = switch.DOMAIN