mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-04 01:10:33 -06:00
home dashboard: Allow users to choose weather entity if they have more than one (#27643)
This commit is contained in:
parent
c0cc66c1ab
commit
505ef2bd11
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user