mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 21:10:25 +00:00
Let platforms decide entity creation in litterrobot (#136738)
This commit is contained in:
@@ -123,15 +123,9 @@ async def setup_integration(
|
||||
)
|
||||
entry.add_to_hass(hass)
|
||||
|
||||
with (
|
||||
patch(
|
||||
"homeassistant.components.litterrobot.coordinator.Account",
|
||||
return_value=mock_account,
|
||||
),
|
||||
patch(
|
||||
"homeassistant.components.litterrobot.PLATFORMS_BY_TYPE",
|
||||
{Robot: (platform_domain,)} if platform_domain else {},
|
||||
),
|
||||
with patch(
|
||||
"homeassistant.components.litterrobot.coordinator.Account",
|
||||
return_value=mock_account,
|
||||
):
|
||||
await hass.config_entries.async_setup(entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
Reference in New Issue
Block a user