From f5b2273fc1476e742350c7eb17fe5f3777b7ad4c Mon Sep 17 00:00:00 2001 From: aschobba Date: Wed, 28 Jun 2023 09:33:48 +0200 Subject: [PATCH] Add support for HmIP-BS2 to HomematicIP Cloud (#93599) * Add support for HmIP-BS2 Add support for HmIP-BS2 * Run ruff fix --------- Co-authored-by: Franck Nijhof --- homeassistant/components/homematicip_cloud/switch.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homeassistant/components/homematicip_cloud/switch.py b/homeassistant/components/homematicip_cloud/switch.py index 770687ef50d..65919033801 100644 --- a/homeassistant/components/homematicip_cloud/switch.py +++ b/homeassistant/components/homematicip_cloud/switch.py @@ -4,6 +4,7 @@ from __future__ import annotations from typing import Any from homematicip.aio.device import ( + AsyncBrandSwitch2, AsyncBrandSwitchMeasuring, AsyncDinRailSwitch, AsyncDinRailSwitch4, @@ -77,6 +78,9 @@ async def async_setup_entry( elif isinstance(device, AsyncPrintedCircuitBoardSwitch2): for channel in range(1, 3): entities.append(HomematicipMultiSwitch(hap, device, channel=channel)) + elif isinstance(device, AsyncBrandSwitch2): + for channel in range(1, 3): + entities.append(HomematicipMultiSwitch(hap, device, channel=channel)) for group in hap.home.groups: if isinstance(group, (AsyncExtendedLinkedSwitchingGroup, AsyncSwitchingGroup)):