Add MockPlatform type hints in tests (#120012)

* Add MockPlatform type hints in tests

* Remove useless code

* Improve

* Revert "Improve"

This reverts commit 9ad04f9255.
This commit is contained in:
epenet
2024-06-21 11:04:15 +02:00
committed by GitHub
parent 53022df8a4
commit dc6c1f4e87
7 changed files with 43 additions and 21 deletions

View File

@@ -163,7 +163,7 @@ async def test_validate_platform_config_2(
mock_platform(
hass,
"whatever.platform_conf",
MockPlatform("whatever", platform_schema=platform_schema),
MockPlatform(platform_schema=platform_schema),
)
with assert_setup_component(1):
@@ -192,7 +192,7 @@ async def test_validate_platform_config_3(
mock_platform(
hass,
"whatever.platform_conf",
MockPlatform("whatever", platform_schema=platform_schema),
MockPlatform(platform_schema=platform_schema),
)
with assert_setup_component(1):