mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Fix missing switch groups of HomematicIP Cloud (#30903)
This commit is contained in:
parent
8a78b65f0d
commit
d913d35fc3
@ -13,7 +13,7 @@ from homematicip.aio.device import (
|
|||||||
AsyncPrintedCircuitBoardSwitch2,
|
AsyncPrintedCircuitBoardSwitch2,
|
||||||
AsyncPrintedCircuitBoardSwitchBattery,
|
AsyncPrintedCircuitBoardSwitchBattery,
|
||||||
)
|
)
|
||||||
from homematicip.aio.group import AsyncSwitchingGroup
|
from homematicip.aio.group import AsyncExtendedLinkedSwitchingGroup, AsyncSwitchingGroup
|
||||||
|
|
||||||
from homeassistant.components.switch import SwitchDevice
|
from homeassistant.components.switch import SwitchDevice
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
@ -67,7 +67,7 @@ async def async_setup_entry(
|
|||||||
entities.append(HomematicipMultiSwitch(hap, device, channel))
|
entities.append(HomematicipMultiSwitch(hap, device, channel))
|
||||||
|
|
||||||
for group in hap.home.groups:
|
for group in hap.home.groups:
|
||||||
if isinstance(group, AsyncSwitchingGroup):
|
if isinstance(group, (AsyncExtendedLinkedSwitchingGroup, AsyncSwitchingGroup)):
|
||||||
entities.append(HomematicipGroupSwitch(hap, group))
|
entities.append(HomematicipGroupSwitch(hap, group))
|
||||||
|
|
||||||
if entities:
|
if entities:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user