Cleanup mqtt platform tests part 6 (last) (#120736)
This commit is contained in:
parent
d03a6f84a3
commit
a8f4684929
28 changed files with 109 additions and 442 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue