mirror of
https://github.com/home-assistant/core.git
synced 2025-12-27 14:31:13 +00:00
Reorg Homematic IP Cloud imports and minor fixes (#23330)
* reorg HmiP Imports after introduction of manifests * add type to some functions * fix usage of dimLevel (HomematicipDimmer,HomematicipNotificationLight) * align naming to HomematicipMultiSwitch: channel_index -> channel for (HomematicipNotificationLight) * fix lint * Fix is_on for dimmers * fix lint
This commit is contained in:
committed by
Martin Hjelmare
parent
68d3e624e6
commit
16d8e92b06
@@ -1,6 +1,8 @@
|
||||
"""Support for HomematicIP Cloud climate devices."""
|
||||
import logging
|
||||
|
||||
from homematicip.group import HeatingGroup
|
||||
|
||||
from homeassistant.components.climate import ClimateDevice
|
||||
from homeassistant.components.climate.const import (
|
||||
STATE_AUTO, STATE_MANUAL, SUPPORT_TARGET_TEMPERATURE)
|
||||
@@ -26,8 +28,6 @@ async def async_setup_platform(
|
||||
|
||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
"""Set up the HomematicIP climate from a config entry."""
|
||||
from homematicip.group import HeatingGroup
|
||||
|
||||
home = hass.data[HMIPC_DOMAIN][config_entry.data[HMIPC_HAPID]].home
|
||||
devices = []
|
||||
for device in home.groups:
|
||||
|
||||
Reference in New Issue
Block a user