mmillmor / geo_home

Geo Home smart meter integration for Home Assistant
Apache License 2.0
25 stars 4 forks source link

Fix Home Assistant deprecation warnings #37

Closed rmtsrc closed 8 months ago

rmtsrc commented 10 months ago

The following warnings are currently showing up in the Home Assistant logs, this PR fixes them:

2024-01-15 08:59:30.571 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_HEAT was used from geo_home, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.HEATING instead, please create a bug report at https://github.com/mmillmor/geo_home_hacs/issues
2024-01-15 08:59:30.574 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_OFF was used from geo_home, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.OFF instead, please create a bug report at https://github.com/mmillmor/geo_home_hacs/issues
2024-01-15 08:59:30.576 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_HEAT was used from geo_home, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.HEAT instead, please create a bug report at https://github.com/mmillmor/geo_home_hacs/issues
2024-01-15 08:59:30.579 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_OFF was used from geo_home, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.OFF instead, please create a bug report at https://github.com/mmillmor/geo_home_hacs/issues
2024-01-15 08:59:31.094 WARNING (MainThread) [homeassistant.const] ENERGY_KILO_WATT_HOUR was used from geo_home, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please create a bug report at https://github.com/mmillmor/geo_home_hacs/issues
2024-01-15 08:59:31.095 WARNING (MainThread) [homeassistant.const] POWER_WATT was used from geo_home, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.WATT instead, please create a bug report at https://github.com/mmillmor/geo_home_hacs/issues
2024-01-15 08:59:31.097 WARNING (MainThread) [homeassistant.const] VOLUME_CUBIC_METERS was used from geo_home, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfVolume.CUBIC_METERS instead, please create a bug report at https://github.com/mmillmor/geo_home_hacs/issues

Fixes #39

mmillmor commented 8 months ago

You should bump the version in the manifest to 1.12.0 for it to get picked up by hacs