jscruz / sensor.carbon_intensity_uk

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

Rename device_state_attributes to extra_state_attributes #10

Open mikelward opened 2 months ago

mikelward commented 2 months ago

Since HA 2022.4, device_state_attributes no longer works. We need to use extra_state_attributes instead. https://github.com/home-assistant/core/pull/67837 https://developers.home-assistant.io/blog/2022/03/30/2022.4-new-dev-features/

Fixes #9

mikelward commented 2 months ago

Here's the original change that introduced extra_state_attributes: https://github.com/home-assistant/core/pull/47304