mirror of
https://github.com/DigiLive/mushroom-strategy.git
synced 2025-08-05 12:34:27 +02:00
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:
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.
|
// Weather chip.
|
||||||
const weatherEntityId = chipOptions?.weather_entity ?? Helper.entities.find(
|
const weatherEntityId = chipOptions?.weather_entity ?? Helper.entities.find(
|
||||||
entity => entity.entity_id.startsWith("weather.") && entity.disabled_by == null && entity.hidden_by == null,
|
entity => entity.entity_id.startsWith("weather.") && entity.disabled_by == null && entity.hidden_by == null,
|
||||||
).entity_id;
|
)?.entity_id;
|
||||||
|
|
||||||
if (weatherEntityId) {
|
if (weatherEntityId) {
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user