Prefer modern weather forecast over legacy (#17518)

weather entity select modern types
This commit is contained in:
G Johansson 2023-08-08 08:27:11 +02:00 committed by GitHub
parent e40bdd5d91
commit 7a446ba2ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,8 +141,7 @@ export class HuiWeatherForecastCardEditor
{ name: "theme", selector: { theme: {} } }, { name: "theme", selector: { theme: {} } },
], ],
}, },
...(!hasForecastLegacy && ...(hasForecastDaily || hasForecastHourly || hasForecastTwiceDaily
(hasForecastDaily || hasForecastHourly || hasForecastTwiceDaily)
? ([ ? ([
{ {
name: "forecast_type", name: "forecast_type",