mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Get forecasts from large to small (#17755)
This commit is contained in:
parent
93846a2867
commit
1825749036
@ -649,11 +649,11 @@ export const getDefaultForecastType = (stateObj: HassEntityBase) => {
|
|||||||
if (supportsFeature(stateObj, WeatherEntityFeature.FORECAST_DAILY)) {
|
if (supportsFeature(stateObj, WeatherEntityFeature.FORECAST_DAILY)) {
|
||||||
return "daily";
|
return "daily";
|
||||||
}
|
}
|
||||||
if (supportsFeature(stateObj, WeatherEntityFeature.FORECAST_HOURLY)) {
|
|
||||||
return "hourly";
|
|
||||||
}
|
|
||||||
if (supportsFeature(stateObj, WeatherEntityFeature.FORECAST_TWICE_DAILY)) {
|
if (supportsFeature(stateObj, WeatherEntityFeature.FORECAST_TWICE_DAILY)) {
|
||||||
return "twice_daily";
|
return "twice_daily";
|
||||||
}
|
}
|
||||||
|
if (supportsFeature(stateObj, WeatherEntityFeature.FORECAST_HOURLY)) {
|
||||||
|
return "hourly";
|
||||||
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user