diff --git a/src/data/weather.ts b/src/data/weather.ts index 4efa71b0c7..9e66ada7f3 100644 --- a/src/data/weather.ts +++ b/src/data/weather.ts @@ -649,11 +649,11 @@ export const getDefaultForecastType = (stateObj: HassEntityBase) => { if (supportsFeature(stateObj, WeatherEntityFeature.FORECAST_DAILY)) { return "daily"; } - if (supportsFeature(stateObj, WeatherEntityFeature.FORECAST_HOURLY)) { - return "hourly"; - } if (supportsFeature(stateObj, WeatherEntityFeature.FORECAST_TWICE_DAILY)) { return "twice_daily"; } + if (supportsFeature(stateObj, WeatherEntityFeature.FORECAST_HOURLY)) { + return "hourly"; + } return undefined; };