mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Fix pylint warning on python 3.7 (#21714)
This commit is contained in:
parent
f4a9ad0b2e
commit
a85119ac09
@ -184,7 +184,8 @@ class EQ3BTSmartThermostat(ClimateDevice):
|
|||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
"""Update the data from the thermostat."""
|
"""Update the data from the thermostat."""
|
||||||
from bluepy.btle import BTLEException # pylint: disable=import-error
|
# pylint: disable=import-error,no-name-in-module
|
||||||
|
from bluepy.btle import BTLEException
|
||||||
try:
|
try:
|
||||||
self._thermostat.update()
|
self._thermostat.update()
|
||||||
except BTLEException as ex:
|
except BTLEException as ex:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user