Skip to content

Commit

Permalink
Update pages.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joBr99 committed Mar 30, 2024
1 parent e5c1f05 commit d94d937
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/nspanel-lovelace-ui/luibackend/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ def generate_entities_item(self, item, cardType="cardGrid", temp_unit="", mask=N
else:
entityType = "delete"

if entityId in ["sensor.weather_forecast_daily", "sensor.weather_forecast_hourly"]:
entityType = "weather"

apis.ha_api.log(f"Generating item for {entityId} with type {entityType}", level="DEBUG")

status_entity = apis.ha_api.get_entity(item.status) if item.status and apis.ha_api.entity_exists(item.status) else None
Expand Down

0 comments on commit d94d937

Please sign in to comment.