kevinvincent / ha-wyzesense

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

BinarySensorDevice is deprecated (HA core .110) #139

Closed swingerman closed 4 years ago

swingerman commented 4 years ago

It seems that the new version of HA core (.110) introduced some breaking changes and the wyzesense component is affected:

BinarySensorDevice is deprecated, modify WyzeSensor to extend BinarySensorEntity

mgriffin13 commented 4 years ago

As I was talking about in https://github.com/kevinvincent/ha-wyzesense/issues/111, this component should really be redesigned to be a top-level integration, rather than only a binary_sensor platform. That would fix this deprecation, plus it would bring Wyze up to be more in line with the other integrations that exist.

tteck commented 4 years ago

Replace BinarySensorDevice with BinarySensorEntity in two places, line 23 and 185 in the binary_sensor.py.

photinus commented 4 years ago

Will have an updated release out here in the next day or so. The fix is already committed to master.