mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Adjust litterrobot platform loading/unloading (#77682)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
@@ -99,8 +99,8 @@ async def setup_integration(
|
||||
with patch(
|
||||
"homeassistant.components.litterrobot.hub.Account", return_value=mock_account
|
||||
), patch(
|
||||
"homeassistant.components.litterrobot.PLATFORMS",
|
||||
[platform_domain] if platform_domain else [],
|
||||
"homeassistant.components.litterrobot.PLATFORMS_BY_TYPE",
|
||||
{Robot: (platform_domain,)} if platform_domain else {},
|
||||
):
|
||||
await hass.config_entries.async_setup(entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
Reference in New Issue
Block a user