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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 188 additions and 97 deletions

View file

@ -760,7 +760,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 lock per unique_id."""
config = {
mqtt.DOMAIN: {
@ -1010,7 +1012,7 @@ async def test_encoding_subscribable_topics(
async def test_setup_manual_entity_from_yaml(
hass: HomeAssistant, caplog: pytest.LogCaptureFixture, tmp_path
hass: HomeAssistant, caplog: pytest.LogCaptureFixture, tmp_path: Path
) -> None:
"""Test setup manual configured MQTT entity."""
platform = lock.DOMAIN