vwt12eh8 / hassio-ecoflow

EcoFlow Portable Power Station Integration for Home Assistant
MIT License
240 stars 37 forks source link

Deprecated Constants - Upcoming changes to Home Assistant #108

Open lk229 opened 7 months ago

lk229 commented 7 months ago

I noticed this in my log...

ENERGY_WATT_HOUR was used from ecoflow, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.WATT_HOUR instead, please create a bug report at https://github.com/vwt12eh8/hassio-ecoflow/issues
FREQUENCY_HERTZ was used from ecoflow, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfFrequency.HERTZ instead, please create a bug report at https://github.com/vwt12eh8/hassio-ecoflow/issues
POWER_WATT was used from ecoflow, 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/vwt12eh8/hassio-ecoflow/issues
TEMP_CELSIUS was used from ecoflow, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/vwt12eh8/hassio-ecoflow/issues
ELECTRIC_CURRENT_AMPERE was used from ecoflow, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricCurrent.AMPERE instead, please create a bug report at https://github.com/vwt12eh8/hassio-ecoflow/issues

Looks like there's quite a bit of time before this takes effect.

Ne0-Hack3r commented 7 months ago

I just noticed the same thing. looks like some tweaks will be needed to avoid things breaking in the future.