Fix Home view not loading because of lack of weather entity

This commit is contained in:
Aalian Khan
2023-09-25 22:04:57 -04:00
parent f8f4cb194f
commit 8f4fce7d54
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -114,7 +114,7 @@ class HomeView extends AbstractView {
// Weather chip.
const weatherEntityId = chipOptions?.weather_entity ?? Helper.entities.find(
entity => entity.entity_id.startsWith("weather.") && entity.disabled_by == null && entity.hidden_by == null,
).entity_id;
)?.entity_id;
if (weatherEntityId) {
try {