markgdev / home-assistant_OctopusAgile

Octopus Agile custom component for Home Assistant
Apache License 2.0
86 stars 33 forks source link

Implements device_state attributes #93

Open d1964b opened 2 years ago

d1964b commented 2 years ago

Looking in the home assistant 'core' logs I've started to see the following on service startup:

2022-01-18 09:56:41 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.octopus_agile_previous_rate (<class 'custom_components.octopusagile.sensor.PreviousRate'>) implements device_state_attributes. Please report it to the custom component author. 2022-01-18 09:56:42 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.octopus_agile_current_rate (<class 'custom_components.octopusagile.sensor.CurrentRate'>) implements device_state_attributes. Please report it to the custom component author. 2022-01-18 09:56:42 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.octopus_agile_next_rate (<class 'custom_components.octopusagile.sensor.NextRate'>) implements device_state_attributes. Please report it to the custom component author. 2022-01-18 09:56:42 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.octopus_agile_min_rate (<class 'custom_components.octopusagile.sensor.MinRate'>) implements device_state_attributes. Please report it to the custom component author.

I'm not sure how significant this is or not 😵

version: core-2021.12.9 installation_type: Home Assistant OS dev: false hassio: true python_version: 3.9.7 os_name: Linux os_version: 5.10.88 host_os: Home Assistant OS 7.1 supervisor_version: supervisor-2021.12.2

B-Hartley commented 2 years ago

the use of device_state_attributes has been deprecated. I think extra_state_attributes should be used from now on.