From bef1c00b4959717f25fcad9b661659329bc27d6d Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Wed, 4 Dec 2019 14:15:39 +0100 Subject: [PATCH] Move imports to top for hunterdouglas_powerview (#29420) --- .../components/hunterdouglas_powerview/scene.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/hunterdouglas_powerview/scene.py b/homeassistant/components/hunterdouglas_powerview/scene.py index d55a970f1e4..3f2ac79306c 100644 --- a/homeassistant/components/hunterdouglas_powerview/scene.py +++ b/homeassistant/components/hunterdouglas_powerview/scene.py @@ -1,12 +1,16 @@ """Support for Powerview scenes from a Powerview hub.""" import logging +from aiopvapi.helpers.aiorequest import AioRequest +from aiopvapi.resources.scene import Scene as PvScene +from aiopvapi.rooms import Rooms +from aiopvapi.scenes import Scenes import voluptuous as vol -import homeassistant.helpers.config_validation as cv -from homeassistant.components.scene import Scene, DOMAIN +from homeassistant.components.scene import DOMAIN, Scene from homeassistant.const import CONF_PLATFORM from homeassistant.helpers.aiohttp_client import async_get_clientsession +import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import async_generate_entity_id _LOGGER = logging.getLogger(__name__) @@ -33,11 +37,6 @@ STATE_ATTRIBUTE_ROOM_NAME = "roomName" async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): """Set up home assistant scene entries.""" - # from aiopvapi.hub import Hub - from aiopvapi.helpers.aiorequest import AioRequest - from aiopvapi.scenes import Scenes - from aiopvapi.rooms import Rooms - from aiopvapi.resources.scene import Scene as PvScene hub_address = config.get(HUB_ADDRESS) websession = async_get_clientsession(hass)