Skip to content

Commit

Permalink
Add Units to WeatherUpdateCoordinator
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofghosts authored Feb 12, 2024
1 parent c3a09b5 commit c764cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/pirateweather/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
hass.data.setdefault(DOMAIN, {})
# Create and link weather WeatherUpdateCoordinator
weather_coordinator = WeatherUpdateCoordinator(
api_key, latitude, longitude, timedelta(seconds=pw_scan_Int), hass
api_key, latitude, longitude, timedelta(seconds=pw_scan_Int), hass, units
)
hass.data[DOMAIN][unique_location] = weather_coordinator

Expand Down

0 comments on commit c764cf7

Please sign in to comment.