mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00: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:
@@ -228,7 +228,7 @@ async def test_set_scan_interval_via_platform(hass: HomeAssistant) -> None:
|
||||
"""Test the platform setup."""
|
||||
add_entities([MockEntity(should_poll=True)])
|
||||
|
||||
platform = MockPlatform(platform_setup)
|
||||
platform = MockPlatform(setup_platform=platform_setup)
|
||||
platform.SCAN_INTERVAL = timedelta(seconds=30)
|
||||
|
||||
mock_platform(hass, "platform.test_domain", platform)
|
||||
|
||||
Reference in New Issue
Block a user