mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Apply registry type hints on mqtt platform tests (#87758)
Apply registry fixture types on platform tests
This commit is contained in:
@ -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: {
|
||||
|
Reference in New Issue
Block a user