From 1825749036cdf4cbe64d8fa580d3871134997ac9 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 31 Aug 2023 14:32:30 +0200 Subject: [PATCH] Get forecasts from large to small (#17755) --- src/data/weather.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; };