Bouni / luxtronik

Luxtronik integration for Home Assistant
MIT License
82 stars 13 forks source link

Replace DEVICE_CLASS_* with SensorDeviceClass #60

Closed Bouni closed 1 year ago

Bouni commented 1 year ago

As suggested by @frenck in #59

Also use UnitOf* enums for units.

frenck commented 1 year ago

*note: The unit enums are more recent, looking at the current scope of this change, I think that means this custom integration will now be at least requiring Home Assistant Core 2022.12 (maybe 2022.11 will work).

This needs to be guarded by setting the minimum required HA version in the hacs.json file.

../Frenck

Bouni commented 1 year ago

Good point, I had to upgrade for my test as UnitOfTime was not importable from const.py