mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Move imports to top for eq3btsmart (#29456)
This commit is contained in:
parent
06a156c091
commit
f422cdbfef
@ -1,6 +1,8 @@
|
|||||||
"""Support for eQ-3 Bluetooth Smart thermostats."""
|
"""Support for eQ-3 Bluetooth Smart thermostats."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
# pylint: disable=import-error
|
||||||
|
from bluepy.btle import BTLEException
|
||||||
import eq3bt as eq3 # pylint: disable=import-error
|
import eq3bt as eq3 # pylint: disable=import-error
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
@ -11,9 +13,9 @@ from homeassistant.components.climate.const import (
|
|||||||
HVAC_MODE_OFF,
|
HVAC_MODE_OFF,
|
||||||
PRESET_AWAY,
|
PRESET_AWAY,
|
||||||
PRESET_BOOST,
|
PRESET_BOOST,
|
||||||
|
PRESET_NONE,
|
||||||
SUPPORT_PRESET_MODE,
|
SUPPORT_PRESET_MODE,
|
||||||
SUPPORT_TARGET_TEMPERATURE,
|
SUPPORT_TARGET_TEMPERATURE,
|
||||||
PRESET_NONE,
|
|
||||||
)
|
)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_TEMPERATURE,
|
ATTR_TEMPERATURE,
|
||||||
@ -190,8 +192,6 @@ class EQ3BTSmartThermostat(ClimateDevice):
|
|||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
"""Update the data from the thermostat."""
|
"""Update the data from the thermostat."""
|
||||||
# pylint: disable=import-error
|
|
||||||
from bluepy.btle import BTLEException
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self._thermostat.update()
|
self._thermostat.update()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user