kevinvincent / ha-wyzesense

A Home Assistant Component to interface with the WYZE Sense hub and sensor system
368 stars 97 forks source link

HASS 2021.12: WyzeSensor implements device_state_attributes #219

Closed IvanUA closed 2 years ago

IvanUA commented 2 years ago

From the HASS 2021.12 log: _<class 'custom_components.wyzesense.binary_sensor.WyzeSensor'>) implements device_stateattributes. Please report it to the custom component author. Please advise how to fix

worldgod13 commented 2 years ago

Logger: homeassistant.helpers.entity Source: helpers/entity.py:549 First occurred: 8:04:37 AM (6 occurrences) Last logged: 8:04:38 AM

Entity binary_sensor.kitchen_motion_sensor (<class 'custom_components.wyzesense.binary_sensor.WyzeSensor'>) implements device_state_attributes. Please report it to the custom component author. Entity binary_sensor.basement_motion_sensor (<class 'custom_components.wyzesense.binary_sensor.WyzeSensor'>) implements device_state_attributes. Please report it to the custom component author. Entity binary_sensor.stairway_motion_sensor (<class 'custom_components.wyzesense.binary_sensor.WyzeSensor'>) implements device_state_attributes. Please report it to the custom component author. Entity binary_sensor.basement_door (<class 'custom_components.wyzesense.binary_sensor.WyzeSensor'>) implements device_state_attributes. Please report it to the custom component author. Entity binary_sensor.garage_side_door (<class 'custom_components.wyzesense.binary_sensor.WyzeSensor'>) implements device_state_attributes. Please report it to the custom component author.

worldgod13 commented 2 years ago

From the HASS 2021.12 log: _<class 'custom_components.wyzesense.binary_sensor.WyzeSensor'>) implements device_stateattributes. Please report it to the custom component author. Please advise how to fix

I fixed mine I believe. Edit /config/custom_components/wyzesense/binary_sensor.py line 241 changed from def device_state_attributes(self): to def extra_state_attributes(self):

After reboot I had no warnings.

IvanUA commented 2 years ago

Thank you @worldgod13. That solved the issue. Also I see that there's a PR for that already.