dannerph / homeassistant-solcast

Apache License 2.0
19 stars 3 forks source link

Sensor implements device_state_attributes #21

Closed kaizersoje closed 2 years ago

kaizersoje commented 2 years ago

The sensors currently implements device_state_attributes. They need to be replaced with extra_state_attributes. This is what comes up in the logs.

2022-02-01 23:35:35 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.solcast_forecast (<class 'custom_components.solcast.sensor.SolcastSensor'>) implements device_state_attributes. Please report it to the custom component author.
2022-02-01 23:35:35 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.solcast_history (<class 'custom_components.solcast.sensor.SolcastSensor'>) implements device_state_attributes. Please report it to the custom component author.
2022-02-01 23:35:35 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.solcast_remaining_api_count (<class 'custom_components.solcast.sensor.SolcastSensor'>) implements device_state_attributes. Please report it to the custom component author.
dannerph commented 2 years ago

Hi @kaizersoje, I am no longer using or developing this integration because I swtiched to https://github.com/oziee/ha-solcast-solar But anyhow, feel free to fork and improve it under the same licence :)

kaizersoje commented 2 years ago

You can archive the project since you are not maintaining it. :)