Move imports to top for plum_lightpad (#29324)

pull/29341/head
springstan 2019-12-03 00:58:18 +01:00 committed by Martin Hjelmare
parent 55ba956d3d
commit bacc549576
1 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,7 @@
import asyncio
import logging
from plumlightpad import Plum
import voluptuous as vol
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, EVENT_HOMEASSISTANT_STOP
@ -30,7 +31,6 @@ PLUM_DATA = "plum"
async def async_setup(hass, config):
"""Plum Lightpad Platform initialization."""
from plumlightpad import Plum
conf = config[DOMAIN]
plum = Plum(conf[CONF_USERNAME], conf[CONF_PASSWORD])