Move imports to top for geizhals (#29021)

pull/29046/head
springstan 2019-11-25 09:43:59 +01:00 committed by cgtobi
parent ee038999fc
commit cc3559d54c
1 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,7 @@
import logging
from datetime import timedelta
from geizhals import Device, Geizhals
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
@ -45,7 +46,6 @@ class Geizwatch(Entity):
def __init__(self, name, description, product_id, domain):
"""Initialize the sensor."""
from geizhals import Device, Geizhals
# internal
self._name = name