Garulf / ha_apcaccess

Home Assistant plugin to track APC UPS
1 stars 0 forks source link

Replace deprecated constants #1

Closed cyrkul closed 8 months ago

cyrkul commented 8 months ago

Home assistant is logging warning regarding deprecated constants that will be remoced in HA Core 2025.01: TIME_MINUTES, TIME_SECONDS, POWER_WATT, DEVICE_CLASS_POWER, DEVICE_CLASS_VOLTAGE, DEVICE_CLASS_CURRENT, ELECTRIC_POTENTIAL_VOLT and ELECTRIC_CURRENT_AMPERE.

DEVICE_CLASS_POWER was used from apcaccess, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.POWER instead, please report it to the author of the 'apcaccess' custom integration
DEVICE_CLASS_VOLTAGE was used from apcaccess, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.VOLTAGE instead, please report it to the author of the 'apcaccess' custom integration
DEVICE_CLASS_CURRENT was used from apcaccess, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.CURRENT instead, please report it to the author of the 'apcaccess' custom integration
ELECTRIC_POTENTIAL_VOLT was used from apcaccess, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricPotential.VOLT instead, please report it to the author of the 'apcaccess' custom integration
ELECTRIC_CURRENT_AMPERE was used from apcaccess, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricCurrent.AMPERE instead, please report it to the author of the 'apcaccess' custom integration
TIME_MINUTES was used from apcaccess, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTime.MINUTES instead, please report it to the author of the 'apcaccess' custom integration
TIME_SECONDS was used from apcaccess, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTime.SECONDS instead, please report it to the author of the 'apcaccess' custom integration
POWER_WATT was used from apcaccess, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.WATT instead, please report it to the author of the 'apcaccess' custom integration
cyrkul commented 8 months ago

I already have changes, so please let me create PR.

Garulf commented 8 months ago

I already have changes, so please let me create PR.

Thank you for your efforts but an official APC integration exists at: https://www.home-assistant.io/integrations/apcupsd/

Making this repo obsolete.

cyrkul commented 8 months ago

I have no idea how did duckduckgo suggest me this integration but not official one. Thank you for information, closing.