Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move imports to top for canary #29449

Merged
merged 1 commit into from Dec 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions homeassistant/components/canary/sensor.py
@@ -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
Expand Down Expand Up @@ -103,8 +104,6 @@ def update(self):
"""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
Expand Down