mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user