forked from DigiLive/mushroom-strategy
Fix Home view not loading because of lack of weather entity
This commit is contained in:
2
dist/mushroom-strategy.js
vendored
2
dist/mushroom-strategy.js
vendored
File diff suppressed because one or more lines are too long
@@ -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 {
|
||||
|
Reference in New Issue
Block a user