mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
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 <git@frenck.dev>
This commit is contained in:
parent
5955be46a4
commit
f5b2273fc1
@ -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)):
|
||||
|
Loading…
x
Reference in New Issue
Block a user