mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Uniformize platform setup (#47101)
* A platform is not a component * Fix dynalite * SUPPORTED_PLATFORMS --> PLATFORMS * In tests * In tests 2 * Fix SmartThings * Fix ZHA test * Fix Z-Wave * Revert Z-Wave * Use PLATFORMS const in ambient_station * Fix ihc comment
This commit is contained in:
@@ -16,7 +16,7 @@ async def setup_platform(hass, platform):
|
||||
)
|
||||
mock_entry.add_to_hass(hass)
|
||||
|
||||
with patch("homeassistant.components.abode.ABODE_PLATFORMS", [platform]), patch(
|
||||
with patch("homeassistant.components.abode.PLATFORMS", [platform]), patch(
|
||||
"abodepy.event_controller.sio"
|
||||
), patch("abodepy.utils.save_cache"):
|
||||
assert await async_setup_component(hass, ABODE_DOMAIN, {})
|
||||
|
||||
Reference in New Issue
Block a user