custom-components / sensor.owlintuition

A set of sensors to integrate the OWL Intuition devices network
MIT License
11 stars 9 forks source link

Fix #21 Due to deprecated capability 'device_state_attributes' being removed #22

Closed shortbloke closed 2 years ago

shortbloke commented 2 years ago

Fix #21 Due to deprecated capability 'device_state_attributes' being removed see: https://github.com/home-assistant/core/pull/67837

Also stopped setting self._attrs[ATTR_LAST_UPDATE] as this doesn't appear to be something that's worked for some time.

Also stopped setting self._attr_last_reset as not supported on SensorStateClass.TOTAL_INCREASING only TOTAL

Removed some unused imports

Removed some unused/unneeded lists

glpatcern commented 2 years ago

Excellent, thanks a lot for the contribution and the comments!