Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Homematic IP Cloud remaining light imports #23339

Merged
merged 3 commits into from
Apr 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions homeassistant/components/homematicip_cloud/light.py
Original file line number Diff line number Diff line change
@@ -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 (
Expand All @@ -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:
Expand Down