-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(constants): migrate deprecated constants to enums #108
Conversation
@msp1974 would you mind taking a look on this PR? |
Tested in fresh HA installation ( |
Looks good to me. |
Just noticed you have upped version to v3.0.0. As no change to functionality, can we make v2.2.5. |
I bumped to v3.0.0 because of new minimum requirement of HA version (considered as breaking for users of older HA version). But otherwise none other breaking changes. Up to you 😄 |
@msp1974 Should we release |
Use 2.2.5. Thanks |
Migrate deprecated HA constants to enums:
UnitOfPressure
enum introduced in Migrate pressure units to an enum home-assistant/core#81009 and HA2022.11
UnitOfLength
enum introduced in Migrate length units to an enum home-assistant/core#81011 and HA2022.11
SourceType
enum introduced in Add StrEnum for device_trackerSourceType
home-assistant/core#75892 and HA2022.9
UnitOfTemperature
enum introduced in Migrate temperature units to an enum home-assistant/core#81006 and HA2022.11
UnitOfVolume
enum introduced in Migrate volume units to an enum home-assistant/core#81028 and HA2022.11
UnitOfEnergy
enum introduced in Migrate energy units to an enum home-assistant/core#80998 and HA2022.11
Closes #106