kalkih / simple-weather-card

Minimalistic weather card for Home Assistant
MIT License
283 stars 33 forks source link

TypeError: E[A] is undefined #24

Closed WhistleMaster closed 4 years ago

WhistleMaster commented 4 years ago

Hi !

Thanks for the amazing work you do ! I've updated to latest version 0.7.2, but primary_info and secondary_info are not working. I'm using the following configuration:

backdrop: false
primary_info:
  - wind_bearing
  - humidity
secondary_info:
  - precipitation
  - precipitation_probability
custom:
  - temp: sensor.netatmo_outdoor_temperature
  - high: sensor.netatmo_outdoor_high_temp
  - low: sensor.netatmo_outdoor_min_temp
entity: weather.dark_sky
name: ' '
type: 'custom:simple-weather-card'

But I get the following error and the card is not displaying:

TypeError: E[A] is undefined simple-weather-card-bundle.js:1:4519

Thanks !

kalkih commented 4 years ago

Hello, thanks for your report. The error does unfortunately not give me much information to go on. Could you try starting with a very basic config, then add one option after the other and see at which point it breaks?

Start with e.g.

type: custom:simple-weather-card
entity: weather.dark_sky
primary_info:
  - wind_bearing
  - humidity

Then

type: custom:simple-weather-card
entity: weather.dark_sky
secondary_info:
  - precipitation

And so on...

Thank you!

WhistleMaster commented 4 years ago

The following code gives me a card, but the wrong info are displayed:

primary_info:
  - wind_bearing
  - humidity
secondary_info:
  - precipitation
custom:
  - temp: sensor.netatmo_outdoor_temperature
  - high: sensor.netatmo_outdoor_high_temp
  - low: sensor.netatmo_outdoor_min_temp
entity: weather.dark_sky
name: ' '
type: 'custom:simple-weather-card'
Screenshot 2020-01-30 at 20 39 03

As soon as I add precipitation_probability, I get an empty card:

primary_info:
  - wind_bearing
  - humidity
secondary_info:
  - precipitation
  - precipitation_probability
custom:
  - temp: sensor.netatmo_outdoor_temperature
  - high: sensor.netatmo_outdoor_high_temp
  - low: sensor.netatmo_outdoor_min_temp
entity: weather.dark_sky
name: ' '
type: 'custom:simple-weather-card'
Screenshot 2020-01-30 at 20 39 44
kalkih commented 4 years ago

Okay, Thanks for the information, I'm pretty sure your browser is not loading the latest version of the card. If you've installed the card manually please try clrearing cache and if you've installed the card with HACS try reinstalling the card. Also make sure your resource reference is correct and is matching the one specified in HACS, see kalkih/mini-graph-card#169

WhistleMaster commented 4 years ago

Thanks for your reply.

Unfortunately, I cleared the cache, removed the integration from my YAML configuration file and uninstalled the mini-graph from HACS, re-installed it with HACS and used the correct naming convention... same issue.

Screenshot 2020-01-31 at 14 01 34 Screenshot 2020-01-31 at 14 01 50
WhistleMaster commented 4 years ago

Well.... I've tried to manually delete the plugin with SSH and manually install the js file... and it now works.... Maybe an issue with HACS itself...

Thanks for the help !

kalkih commented 4 years ago

Alright, yes you're not the first one experiencing issues with HACS lately, there seem to be an issue with updating plugins through HACS at the moment.