Move imports to top for noaa_tides (#29366)
parent
3ddd20159c
commit
bd1e5fce27
|
@ -2,6 +2,7 @@
|
|||
from datetime import datetime, timedelta
|
||||
import logging
|
||||
|
||||
from py_noaa import coops # pylint: disable=import-error
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
|
@ -109,7 +110,6 @@ class NOAATidesAndCurrentsSensor(Entity):
|
|||
|
||||
def update(self):
|
||||
"""Get the latest data from NOAA Tides and Currents API."""
|
||||
from py_noaa import coops # pylint: disable=import-error
|
||||
|
||||
begin = datetime.now()
|
||||
delta = timedelta(days=2)
|
||||
|
|
Loading…
Reference in New Issue