Closed shortbloke closed 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.
self._attrs[ATTR_LAST_UPDATE]
Also stopped setting self._attr_last_reset as not supported on SensorStateClass.TOTAL_INCREASING only TOTAL
self._attr_last_reset
SensorStateClass.TOTAL_INCREASING
TOTAL
Removed some unused imports
Removed some unused/unneeded lists
Excellent, thanks a lot for the contribution and the comments!
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 onSensorStateClass.TOTAL_INCREASING
onlyTOTAL
Removed some unused imports
Removed some unused/unneeded lists