Merge pull request #63 from AalianKhan/60-no-home-view

Fix Home view not loading because of lack of weather entity
This commit is contained in:
Aalian Khan
2023-09-25 22:05:33 -04:00
committed by GitHub
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 {