Move imports to top for noaa_tides (#29366)

pull/29381/head
springstan 2019-12-04 00:47:00 +01:00 committed by Paulus Schoutsen
parent 3ddd20159c
commit bd1e5fce27
1 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,7 @@
from datetime import datetime, timedelta from datetime import datetime, timedelta
import logging import logging
from py_noaa import coops # pylint: disable=import-error
import voluptuous as vol import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.components.sensor import PLATFORM_SCHEMA
@ -109,7 +110,6 @@ class NOAATidesAndCurrentsSensor(Entity):
def update(self): def update(self):
"""Get the latest data from NOAA Tides and Currents API.""" """Get the latest data from NOAA Tides and Currents API."""
from py_noaa import coops # pylint: disable=import-error
begin = datetime.now() begin = datetime.now()
delta = timedelta(days=2) delta = timedelta(days=2)