Apply registry type hints on mqtt platform tests (#87758)

Apply registry fixture types on platform tests
This commit is contained in:
epenet
2023-02-09 11:53:56 +01:00
committed by GitHub
parent 678d1e367d
commit bb174780b9
28 changed files with 188 additions and 97 deletions

View File

@ -163,7 +163,9 @@ class JsonValidator:
return json.loads(self.jsondata) == json.loads(other)
async def test_fail_setup_if_no_command_topic(hass: HomeAssistant, caplog) -> None:
async def test_fail_setup_if_no_command_topic(
hass: HomeAssistant, caplog: pytest.LogCaptureFixture
) -> None:
"""Test if setup fails with no command topic."""
assert not await async_setup_component(
hass,
@ -1459,7 +1461,9 @@ async def test_sending_xy_color(
)
async def test_effect(hass: HomeAssistant, mqtt_mock_entry_with_yaml_config) -> None:
async def test_effect(
hass: HomeAssistant, mqtt_mock_entry_with_yaml_config: MqttMockHAClientGenerator
) -> None:
"""Test for effect being sent when included."""
assert await async_setup_component(
hass,
@ -1985,7 +1989,9 @@ async def test_discovery_update_attr(
)
async def test_unique_id(hass: HomeAssistant, mqtt_mock_entry_with_yaml_config) -> None:
async def test_unique_id(
hass: HomeAssistant, mqtt_mock_entry_with_yaml_config: MqttMockHAClientGenerator
) -> None:
"""Test unique id option only creates one light per unique_id."""
config = {
mqtt.DOMAIN: {