You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if sensor.native_unit_of_measurement:
self._attr_native_unit_of_measurement = sensor.native_unit_of_measurement
if sensor.native_unit_of_measurement and sensor.device_class!=SensorDeviceClass.ENERGY:
self._attr_state_class = SensorStateClass.MEASUREMENT
Moreover, I don't get the updates of this custom component via Hacs... why?
The text was updated successfully, but these errors were encountered:
You should fix the code this way:
Moreover, I don't get the updates of this custom component via Hacs... why?
The text was updated successfully, but these errors were encountered: