Move imports to top for sense (#29258)
This commit is contained in:
1 parent
2bdf7fc8f5
commit
c4c8a1ba2d
3 files changed
+9
-8
No files matched your search
@@ -2,6 +2,8 @@
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
from sense_energy import SenseAPITimeoutException
|
||||
|
||||
from homeassistant.const import ENERGY_KILO_WATT_HOUR, POWER_WATT
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.util import Throttle
|
||||
@@ -114,7 +116,6 @@ class Sense(Entity):
|
||||
|
||||
async def async_update(self):
|
||||
"""Get the latest data, update state."""
|
||||
from sense_energy import SenseAPITimeoutException
|
||||
|
||||
try:
|
||||
await self.update_sensor()
|
||||
|
||||
Reference in new issue
Block a user