exxamalte/home-assistant-custom-components-nsw-rural-fire-service-fire-danger

Deprecated device_state_attributes

Closed this issue · 5 comments

After upgrading to 2021.12 I am getting the following warning messages:

2021-12-13 01:06:00 WARNING (MainThread) [homeassistant.helpers.entity] Entity binary_sensor.greater_sydney_region_fire_ban_today (<class 'custom_components.nsw_rural_fire_service_fire_danger.binary_sensor.NswFireServiceFireDangerBinarySensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-13 01:06:00 WARNING (MainThread) [homeassistant.helpers.entity] Entity binary_sensor.greater_sydney_region_fire_ban_tomorrow (<class 'custom_components.nsw_rural_fire_service_fire_danger.binary_sensor.NswFireServiceFireDangerBinarySensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-13 01:06:00 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.greater_sydney_region_danger_level_today (<class 'custom_components.nsw_rural_fire_service_fire_danger.sensor.NswFireServiceFireDangerSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-13 01:06:00 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.greater_sydney_region_danger_level_tomorrow (<class 'custom_components.nsw_rural_fire_service_fire_danger.sensor.NswFireServiceFireDangerSensor'>) implements device_state_attributes. Please report it to the custom component author.

Apparently device_state_attributes has been deprecated in 2021.4, and the warning message has been added in 2021.12.

More info: device_state_attributes has been replaced by extra_state_attributes.

Are you planning on releasing this soon?

Yes, it’s already in v0.9b1 that I have been testing for about a week now.

any news on release?

I just reasesd v0.9.