mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Move imports to top for geizhals (#29021)
This commit is contained in:
parent
ee038999fc
commit
cc3559d54c
@ -2,6 +2,7 @@
|
|||||||
import logging
|
import logging
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
|
from geizhals import Device, Geizhals
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||||
@ -45,7 +46,6 @@ class Geizwatch(Entity):
|
|||||||
|
|
||||||
def __init__(self, name, description, product_id, domain):
|
def __init__(self, name, description, product_id, domain):
|
||||||
"""Initialize the sensor."""
|
"""Initialize the sensor."""
|
||||||
from geizhals import Device, Geizhals
|
|
||||||
|
|
||||||
# internal
|
# internal
|
||||||
self._name = name
|
self._name = name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user