Skip to content

Commit

Permalink
Hardcode forecast mode to daily to fix integration errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofghosts authored Feb 6, 2024
1 parent 6b1fe0b commit d95c2c2
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 @@ -49,7 +49,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
api_key = entry.data[CONF_API_KEY]
latitude = entry.data.get(CONF_LATITUDE, hass.config.latitude)
longitude = entry.data.get(CONF_LONGITUDE, hass.config.longitude)
forecast_mode = _get_config_value(entry, CONF_MODE)
forecast_mode = "daily"
conditions = _get_config_value(entry, CONF_MONITORED_CONDITIONS)
units = _get_config_value(entry, CONF_UNITS)
forecast_days = _get_config_value(entry, CONF_FORECAST)
Expand Down

0 comments on commit d95c2c2

Please sign in to comment.