Fix patch of PLATFORMS constant in netatmo (#101038)
This commit is contained in:
parent
b8a7ad916a
commit
50827405d0
4 changed files with 12 additions and 8 deletions
|
@ -92,7 +92,11 @@ async def simulate_webhook(hass, webhook_id, response):
|
|||
@contextmanager
|
||||
def selected_platforms(platforms):
|
||||
"""Restrict loaded platforms to list given."""
|
||||
with patch("homeassistant.components.netatmo.PLATFORMS", platforms), patch(
|
||||
with patch(
|
||||
"homeassistant.components.netatmo.data_handler.PLATFORMS", platforms
|
||||
), patch(
|
||||
"homeassistant.helpers.config_entry_oauth2_flow.async_get_config_entry_implementation",
|
||||
), patch("homeassistant.components.netatmo.webhook_generate_url"):
|
||||
), patch(
|
||||
"homeassistant.components.netatmo.webhook_generate_url"
|
||||
):
|
||||
yield
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue