diff --git a/homeassistant/components/homematicip_cloud/light.py b/homeassistant/components/homematicip_cloud/light.py index e783214a447..f4f73104f7c 100644 --- a/homeassistant/components/homematicip_cloud/light.py +++ b/homeassistant/components/homematicip_cloud/light.py @@ -1,6 +1,10 @@ """Support for HomematicIP Cloud lights.""" import logging +from homematicip.aio.device import ( + AsyncBrandSwitchMeasuring, AsyncDimmer, AsyncPluggableDimmer, + AsyncBrandDimmer, AsyncFullFlushDimmer, + AsyncBrandSwitchNotificationLight) from homematicip.base.enums import RGBColorState 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): """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 devices = [] for device in home.devices: