anand-p-r / fmi-hass-custom

Home Assistant Custom Component Supporting FMI Based Weather and Sensor Platforms
MIT License
59 stars 23 forks source link

Entity implements device_state_attributes. #46

Closed operinko closed 2 years ago

operinko commented 2 years ago
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_place (<class 'custom_components.fmi.sensor.FMIBestConditionSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_condition (<class 'custom_components.fmi.sensor.FMIBestConditionSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_temperature (<class 'custom_components.fmi.sensor.FMIBestConditionSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_wind_speed (<class 'custom_components.fmi.sensor.FMIBestConditionSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_wind_direction (<class 'custom_components.fmi.sensor.FMIBestConditionSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_wind_gust (<class 'custom_components.fmi.sensor.FMIBestConditionSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_humidity (<class 'custom_components.fmi.sensor.FMIBestConditionSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_cloud_coverage (<class 'custom_components.fmi.sensor.FMIBestConditionSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_rain (<class 'custom_components.fmi.sensor.FMIBestConditionSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_time (<class 'custom_components.fmi.sensor.FMIBestConditionSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_best_time_of_day (<class 'custom_components.fmi.sensor.FMIBestConditionSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_lightning_strikes (<class 'custom_components.fmi.sensor.FMILightningStrikesSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-26 21:45:57 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.merttila_sea_level (<class 'custom_components.fmi.sensor.FMIMareoSensor'>) implements device_state_attributes. Please report it to the custom component author.

Sensors should be updated to instead implement extra_state_attributes as per Core PR: https://github.com/home-assistant/core/pull/47304

slovdahl commented 2 years ago

I tested replacing all instances of def device_state_attributes(self): with def extra_state_attributes(self): locally, and everything still seems to work.

operinko commented 2 years ago

Yep, I've got mine running with a local patch as well.