mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Move imports to top for canary (#29449)
This commit is contained in:
parent
d70ad369de
commit
52926f1961
@ -1,4 +1,5 @@
|
||||
"""Support for Canary sensors."""
|
||||
from canary.api import SensorType
|
||||
|
||||
from homeassistant.const import TEMP_CELSIUS
|
||||
from homeassistant.helpers.entity import Entity
|
||||
@ -103,8 +104,6 @@ class CanarySensor(Entity):
|
||||
"""Get the latest state of the sensor."""
|
||||
self._data.update()
|
||||
|
||||
from canary.api import SensorType
|
||||
|
||||
canary_sensor_type = None
|
||||
if self._sensor_type[0] == "air_quality":
|
||||
canary_sensor_type = SensorType.AIR_QUALITY
|
||||
|
Loading…
x
Reference in New Issue
Block a user