diff --git a/src/panels/lovelace/strategies/home/home-main-view-strategy.ts b/src/panels/lovelace/strategies/home/home-main-view-strategy.ts index d079d4d494..240f487913 100644 --- a/src/panels/lovelace/strategies/home/home-main-view-strategy.ts +++ b/src/panels/lovelace/strategies/home/home-main-view-strategy.ts @@ -216,7 +216,9 @@ export class HomeMainViewStrategy extends ReactiveElement { column_span: maxColumns, cards: [], }; - const weatherEntity = Object.keys(hass.states).find(weatherFilter); + const weatherEntity = Object.keys(hass.states) + .filter(weatherFilter) + .sort()[0]; if (weatherEntity) { widgetSection.cards!.push(