Skip to content

Commit

Permalink
Get forecasts from large to small (#17755)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Aug 31, 2023
1 parent 93846a2 commit 1825749
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/data/weather.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit 1825749

Please sign in to comment.