Fix Homematic IP Cloud remaining light imports (#23339)
* Fix missing impor reorg * Add brackets * Removed trailing whitespacespull/23350/head
parent
3d04856cbd
commit
2863ac1068
|
@ -1,6 +1,10 @@
|
||||||
"""Support for HomematicIP Cloud lights."""
|
"""Support for HomematicIP Cloud lights."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from homematicip.aio.device import (
|
||||||
|
AsyncBrandSwitchMeasuring, AsyncDimmer, AsyncPluggableDimmer,
|
||||||
|
AsyncBrandDimmer, AsyncFullFlushDimmer,
|
||||||
|
AsyncBrandSwitchNotificationLight)
|
||||||
from homematicip.base.enums import RGBColorState
|
from homematicip.base.enums import RGBColorState
|
||||||
|
|
||||||
from homeassistant.components.light import (
|
from homeassistant.components.light import (
|
||||||
|
@ -23,10 +27,6 @@ async def async_setup_platform(
|
||||||
|
|
||||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||||
"""Set up the HomematicIP Cloud lights from a config entry."""
|
"""Set up the HomematicIP Cloud lights from a config entry."""
|
||||||
from homematicip.aio.device import AsyncBrandSwitchMeasuring, AsyncDimmer,\
|
|
||||||
AsyncPluggableDimmer, AsyncBrandDimmer, AsyncFullFlushDimmer,\
|
|
||||||
AsyncBrandSwitchNotificationLight
|
|
||||||
|
|
||||||
home = hass.data[HMIPC_DOMAIN][config_entry.data[HMIPC_HAPID]].home
|
home = hass.data[HMIPC_DOMAIN][config_entry.data[HMIPC_HAPID]].home
|
||||||
devices = []
|
devices = []
|
||||||
for device in home.devices:
|
for device in home.devices:
|
||||||
|
|
Loading…
Reference in New Issue