Skip to content

Commit

Permalink
Merge pull request #15 from jshufro/noaa_stability
Browse files Browse the repository at this point in the history
Remove initial awaits
  • Loading branch information
jshufro authored Aug 1, 2020
2 parents f34f585 + f577240 commit dac438a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions noaa_tides/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=

if station_type == "tides":
noaa_sensor = NOAATidesAndCurrentsSensor(name, station_id, timezone, unit_system)
await hass.async_add_executor_job(noaa_sensor.noaa_coops_update)
elif station_type == "temp":
noaa_sensor = NOAATemperatureSensor(name, station_id, timezone, unit_system)
await hass.async_add_executor_job(noaa_sensor.noaa_coops_update)
else:
noaa_sensor = NOAABuoySensor(name, station_id, timezone, unit_system)
await hass.async_add_executor_job(noaa_sensor.buoy_query)

async_add_entities([noaa_sensor], True)

Expand Down

0 comments on commit dac438a

Please sign in to comment.