diff --git a/custom_components/pirateweather/__init__.py b/custom_components/pirateweather/__init__.py index ce8ebc0..f14556f 100644 --- a/custom_components/pirateweather/__init__.py +++ b/custom_components/pirateweather/__init__.py @@ -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) diff --git a/custom_components/pirateweather/config_flow.py b/custom_components/pirateweather/config_flow.py index fa1bf8e..a7f445e 100644 --- a/custom_components/pirateweather/config_flow.py +++ b/custom_components/pirateweather/config_flow.py @@ -26,7 +26,6 @@ DEFAULT_NAME, DEFAULT_SCAN_INTERVAL, DOMAIN, - FORECAST_MODES, LANGUAGES, CONF_UNITS, DEFAULT_UNITS, @@ -73,9 +72,6 @@ async def async_step_user(self, user_input=None): vol.Required(PW_PLATFORM, default=[PW_PLATFORMS[1]]): cv.multi_select( PW_PLATFORMS ), - vol.Required(CONF_MODE, default=DEFAULT_FORECAST_MODE): vol.In( - FORECAST_MODES - ), vol.Required(CONF_LANGUAGE, default=DEFAULT_LANGUAGE): vol.In( LANGUAGES ), @@ -234,15 +230,6 @@ async def async_step_init(self, user_input=None): self.config_entry.data.get(PW_PLATFORM, []), ), ): cv.multi_select(PW_PLATFORMS), - vol.Optional( - CONF_MODE, - default=self.config_entry.options.get( - CONF_MODE, - self.config_entry.data.get( - CONF_MODE, DEFAULT_FORECAST_MODE - ), - ), - ): vol.In(FORECAST_MODES), vol.Optional( CONF_LANGUAGE, default=self.config_entry.options.get(