Cleanup mqtt platform tests part 5 (#120719)

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

View file

@ -2559,9 +2559,7 @@ async def test_discovery_removal_light(
async def test_discovery_ignores_extra_keys(
hass: HomeAssistant,
mqtt_mock_entry: MqttMockHAClientGenerator,
caplog: pytest.LogCaptureFixture,
hass: HomeAssistant, mqtt_mock_entry: MqttMockHAClientGenerator
) -> None:
"""Test discovery ignores extra keys that are not blocked."""
await mqtt_mock_entry()
@ -3287,8 +3285,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 = light.DOMAIN
@ -3370,7 +3367,6 @@ async def test_encoding_subscribable_topics(
async def test_encoding_subscribable_topics_brightness(
hass: HomeAssistant,
mqtt_mock_entry: MqttMockHAClientGenerator,
caplog: pytest.LogCaptureFixture,
topic: str,
value: str,
attribute: str,
@ -3582,8 +3578,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 = light.DOMAIN