1
mirror of https://github.com/home-assistant/core synced 2024-09-15 17:29:45 +02:00

Move imports to top for temper (#29118)

This commit is contained in:
springstan 2019-11-27 01:02:50 +01:00 committed by Paulus Schoutsen
parent 555190990a
commit 4e96ca9486

View File

@ -1,5 +1,7 @@
"""Support for getting temperature from TEMPer devices."""
import logging
from temperusb.temper import TemperHandler
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
@ -24,7 +26,6 @@ TEMPER_SENSORS = []
def get_temper_devices():
"""Scan the Temper devices from temperusb."""
from temperusb.temper import TemperHandler
return TemperHandler().get_devices()