mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 22:25:13 +02:00
Move imports to top for temper (#29118)
This commit is contained in:
committed by
Paulus Schoutsen
parent
555190990a
commit
4e96ca9486
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user