jscruz / sensor.carbon_intensity_uk

Carbon Intensity UK Sensor for Home Assistant
MIT License
8 stars 11 forks source link

No state attributes, need to change from device_state_attributes to extra_state_attributes #9

Open mikelward opened 2 months ago

mikelward commented 2 months ago

The sensor has no attributes.

Apparently since 2022 you need to use extra_state_attributes instead of device_state_attributes

https://developers.home-assistant.io/blog/2022/03/30/2022.4-new-dev-features/