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 eq3btsmart #29456

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
6 changes: 3 additions & 3 deletions homeassistant/components/eq3btsmart/climate.py
@@ -1,6 +1,8 @@
"""Support for eQ-3 Bluetooth Smart thermostats."""
import logging

# pylint: disable=import-error
from bluepy.btle import BTLEException
import eq3bt as eq3 # pylint: disable=import-error
import voluptuous as vol

Expand All @@ -11,9 +13,9 @@
HVAC_MODE_OFF,
PRESET_AWAY,
PRESET_BOOST,
PRESET_NONE,
SUPPORT_PRESET_MODE,
SUPPORT_TARGET_TEMPERATURE,
PRESET_NONE,
)
from homeassistant.const import (
ATTR_TEMPERATURE,
Expand Down Expand Up @@ -190,8 +192,6 @@ def set_preset_mode(self, preset_mode):

def update(self):
"""Update the data from the thermostat."""
# pylint: disable=import-error
from bluepy.btle import BTLEException

try:
self._thermostat.update()
Expand Down