peternijssen / lovelace-postnl-card

Lovelace card for PostNL
MIT License
26 stars 9 forks source link

Error PostnlApi object has no attribute 'is_letters_activated' #18

Closed jay448 closed 5 years ago

jay448 commented 5 years ago

Tried to intergrate the component but i'm seeing the following error in the logging: image

It's stating that is_letters_activated has no attribute. Receiving letters is enabled in the app and i'm able to see the letters from the app. Because of this error it's not creating the sensor.postnl_letters Therefore i'm only seeing these 2 views: image

peternijssen commented 5 years ago

I think your custom component is out of date. https://gist.github.com/peternijssen/155c9060923adbc08d0998bbd8ed44bf

Please check both manifest.json and sensor.py have postnlpy==0.4.1. If not, make sure they have and restart HA.

jay448 commented 5 years ago

Hi Peter,

You are right! I followed your post on the HA forums and copied the code shown in the link. All is working properly now :)

Thanks!