EDIT: never mind, classic PEBCAC. I’d blindly edited some of the lines in the actual .js file to add ‘d’ to the end of the lines. Undid that and the card is working agian.
Can anyone interpret this message I’m getting in the Chrome console?
Uncaught (in promise) TypeError: Cannot read property 'state' of undefined
at dark-sky-weather-card.js?v=0.10.2:63
at Array.map (<anonymous>)
at HTMLElement.render (dark-sky-weather-card.js?v=0.10.2:55)
at HTMLElement.update (app-652a7f4d.js:2)
at HTMLElement.performUpdate (app-652a7f4d.js:2)
at HTMLElement._enqueueUpdate (app-652a7f4d.js:2)
Running HA 0.91.0, added the ‘d’ to the end of the relevant lines, applied the code change suggested by @m.p.frankland and have at the top of my lovelace config:
- type: module
url: /local/custom_ui/dark-sky-weather-card.js?v=0.10.2
Darksky config:
- platform: darksky
api_key: !secret darksky_key
language: it
forecast:
- 0
- 1
- 2
- 3
- 4
- 5
monitored_conditions:
- icon
- summary
- nearest_storm_distance
- nearest_storm_bearing
- humidity
- temperature
- temperature_high
- temperature_low
- apparent_temperature
- apparent_temperature_high
- apparent_temperature_low
- wind_speed
- wind_bearing
- precip_type
- precip_probability
- precip_accumulation
- precip_intensity
- precip_intensity_max
- uv_index
- daily_summary
- pressure
- visibility
scan_interval:
minutes: 5