Open LHBL2003 opened 6 months ago
A little clearer in the appendix: home-assistant_Log_Constant_Warnings.txt
DEVICE_CLASS_AQI = SensorDeviceClass.AQI DEVICE_CLASS_BATTERY = SensorDeviceClass.BATTERY DEVICE_CLASS_CO = SensorDeviceClass.CO DEVICE_CLASS_CO2 = SensorDeviceClass.CO2 DEVICE_CLASS_CURRENT = SensorDeviceClass.CURRENT DEVICE_CLASS_DATE = SensorDeviceClass.DATE DEVICE_CLASS_ENERGY = SensorDeviceClass.ENERGY DEVICE_CLASS_FREQUENCY = SensorDeviceClass.FREQUENCY DEVICE_CLASS_GAS = SensorDeviceClass.GAS DEVICE_CLASS_HUMIDITY = SensorDeviceClass.HUMIDITY DEVICE_CLASS_ILLUMINANCE = SensorDeviceClass.ILLUMINANCE DEVICE_CLASS_MONETARY = SensorDeviceClass.MONETARY DEVICE_CLASS_NITROGEN_DIOXIDE = SensorDeviceClass.NITROGEN_DIOXIDE DEVICE_CLASS_NITROGEN_MONOXIDE = SensorDeviceClass.NITROGEN_MONOXIDE DEVICE_CLASS_NITROUS_OXIDE = SensorDeviceClass.NITROUS_OXIDE DEVICE_CLASS_OZONE = SensorDeviceClass.OZONE DEVICE_CLASS_PM1 = SensorDeviceClass.PM1 DEVICE_CLASS_PM10 = SensorDeviceClass.PM10 DEVICE_CLASS_PM25 = SensorDeviceClass.PM25 DEVICE_CLASS_POWER_FACTOR = SensorDeviceClass.POWER_FACTOR DEVICE_CLASS_POWER = SensorDeviceClass.POWER DEVICE_CLASS_PRESSURE = SensorDeviceClass.PRESSURE DEVICE_CLASS_SIGNAL_STRENGTH = SensorDeviceClass.SIGNAL_STRENGTH DEVICE_CLASS_SULPHUR_DIOXIDE = SensorDeviceClass.SULPHUR_DIOXIDE DEVICE_CLASS_TEMPERATURE = SensorDeviceClass.TEMPERATURE DEVICE_CLASS_TIMESTAMP = SensorDeviceClass.TIMESTAMP DEVICE_CLASS_VOLATILE_ORGANIC_COMPOUNDS = SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS DEVICE_CLASS_VOLTAGE = SensorDeviceClass.VOLTAGE POWER_VOLT_AMPERE = UnitOfApparentPower.VOLT_AMPERE POWER_WATT = UnitOfPower.WATT POWER_KILO_WATT = UnitOfPower.KILO_WATT POWER_BTU_PER_HOUR = UnitOfPower.BTU_PER_HOUR ENERGY_KILO_WATT_HOUR = UnitOfEnergy.KILO_WATT_HOUR ENERGY_MEGA_WATT_HOUR = UnitOfEnergy.MEGA_WATT_HOUR ENERGY_WATT_HOUR = UnitOfEnergy.WATT_HOUR ELECTRIC_CURRENT_MILLIAMPERE = UnitOfElectricCurrent.MILLIAMPERE ELECTRIC_CURRENT_AMPERE = UnitOfElectricCurrent.AMPERE ELECTRIC_POTENTIAL_MILLIVOLT = UnitOfElectricPotential.MILLIVOLT ELECTRIC_POTENTIAL_VOLT = UnitOfElectricPotential.VOLT TEMP_CELSIUS = UnitOfTemperature.CELSIUS TEMP_FAHRENHEIT = UnitOfTemperature.FAHRENHEIT TEMP_KELVIN = UnitOfTemperature.KELVIN TIME_MICROSECONDS = UnitOfTime.MICROSECONDS TIME_MILLISECONDS = UnitOfTime.MILLISECONDS TIME_SECONDS = UnitOfTime.SECONDS TIME_MINUTES = UnitOfTime.MINUTES TIME_HOURS = UnitOfTime.HOURS TIME_DAYS = UnitOfTime.DAYS TIME_WEEKS = UnitOfTime.WEEKS TIME_MONTHS = UnitOfTime.MONTHS TIME_YEARS = UnitOfTime.YEARS LENGTH_MILLIMETERS = UnitOfLength.MILLIMETERS LENGTH_CENTIMETERS = UnitOfLength.CENTIMETERS LENGTH_METERS = UnitOfLength.METERS LENGTH_KILOMETERS = UnitOfLength.KILOMETERS LENGTH_INCHES = UnitOfLength.INCHES LENGTH_FEET = UnitOfLength.FEET LENGTH_YARD = UnitOfLength.YARDS LENGTH_MILES = UnitOfLength.MILES FREQUENCY_HERTZ = UnitOfFrequency.HERTZ FREQUENCY_KILOHERTZ = UnitOfFrequency.KILOHERTZ FREQUENCY_MEGAHERTZ = UnitOfFrequency.MEGAHERTZ FREQUENCY_GIGAHERTZ = UnitOfFrequency.GIGAHERTZ PRESSURE_PA = UnitOfPressure.PA PRESSURE_HPA = UnitOfPressure.HPA PRESSURE_KPA = UnitOfPressure.KPA PRESSURE_BAR = UnitOfPressure.BAR PRESSURE_CBAR = UnitOfPressure.CBAR PRESSURE_MBAR = UnitOfPressure.MBAR PRESSURE_MMHG = UnitOfPressure.MMHG PRESSURE_INHG = UnitOfPressure.INHG PRESSURE_PSI = UnitOfPressure.PSI SOUND_PRESSURE_DB = UnitOfSoundPressure.DECIBEL SOUND_PRESSURE_WEIGHTED_DBA = UnitOfSoundPressure.WEIGHTED_DECIBEL_A VOLUME_LITERS = UnitOfVolume.LITERS VOLUME_MILLILITERS = UnitOfVolume.MILLILITERS VOLUME_CUBIC_METERS = UnitOfVolume.CUBIC_METERS VOLUME_CUBIC_FEET = UnitOfVolume.CUBIC_FEET VOLUME_GALLONS = UnitOfVolume.GALLONS VOLUME_FLUID_OUNCE = UnitOfVolume.FLUID_OUNCES VOLUME_FLOW_RATE_CUBIC_METERS_PER_HOUR = UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR VOLUME_FLOW_RATE_CUBIC_FEET_PER_MINUTE = UnitOfVolumeFlowRate.CUBIC_FEET_PER_MINUTE MASS_GRAMS = UnitOfMass.GRAMS MASS_KILOGRAMS = UnitOfMass.KILOGRAMS MASS_MILLIGRAMS = UnitOfMass.MILLIGRAMS MASS_MICROGRAMS = UnitOfMass.MICROGRAMS MASS_OUNCES = UnitOfMass.OUNCES MASS_POUNDS = UnitOfMass.POUNDS IRRADIATION_WATTS_PER_SQUARE_METER = UnitOfIrradiance.WATTS_PER_SQUARE_METER IRRADIATION_BTUS_PER_HOUR_SQUARE_FOOT = UnitOfIrradiance.BTUS_PER_HOUR_SQUARE_FOOT PRECIPITATION_INCHES = UnitOfPrecipitationDepth.INCHES PRECIPITATION_MILLIMETERS = UnitOfPrecipitationDepth.MILLIMETERS PRECIPITATION_MILLIMETERS_PER_HOUR = UnitOfVolumetricFlux.MILLIMETERS_PER_HOUR PRECIPITATION_INCHES_PER_HOUR = UnitOfVolumetricFlux.INCHES_PER_HOUR SPEED_FEET_PER_SECOND = UnitOfSpeed.FEET_PER_SECOND SPEED_METERS_PER_SECOND = UnitOfSpeed.METERS_PER_SECOND SPEED_KILOMETERS_PER_HOUR = UnitOfSpeed.KILOMETERS_PER_HOUR SPEED_KNOTS = UnitOfSpeed.KNOTS SPEED_MILES_PER_HOUR = UnitOfSpeed.MILES_PER_HOUR SPEED_MILLIMETERS_PER_DAY = UnitOfVolumetricFlux.MILLIMETERS_PER_DAY SPEED_INCHES_PER_DAY = UnitOfVolumetricFlux.INCHES_PER_DAY SPEED_INCHES_PER_HOUR = UnitOfVolumetricFlux.INCHES_PER_HOUR DATA_BITS = UnitOfInformation.BITS DATA_KILOBITS = UnitOfInformation.KILOBITS DATA_MEGABITS = UnitOfInformation.MEGABITS DATA_GIGABITS = UnitOfInformation.GIGABITS DATA_BYTES = UnitOfInformation.BYTES DATA_KILOBYTES = UnitOfInformation.KILOBYTES DATA_MEGABYTES = UnitOfInformation.MEGABYTES DATA_GIGABYTES = UnitOfInformation.GIGABYTES DATA_TERABYTES = UnitOfInformation.TERABYTES DATA_PETABYTES = UnitOfInformation.PETABYTES DATA_EXABYTES = UnitOfInformation.EXABYTES DATA_ZETTABYTES = UnitOfInformation.ZETTABYTES DATA_YOTTABYTES = UnitOfInformation.YOTTABYTES DATA_KIBIBYTES = UnitOfInformation.KIBIBYTES DATA_MEBIBYTES = UnitOfInformation.MEBIBYTES DATA_GIBIBYTES = UnitOfInformation.GIBIBYTES DATA_TEBIBYTES = UnitOfInformation.TEBIBYTES DATA_PEBIBYTES = UnitOfInformation.PEBIBYTES DATA_EXBIBYTES = UnitOfInformation.EXBIBYTES DATA_ZEBIBYTES = UnitOfInformation.ZEBIBYTES DATA_YOBIBYTES = UnitOfInformation.YOBIBYTES DATA_RATE_BITS_PER_SECOND = UnitOfDataRate.BITS_PER_SECOND DATA_RATE_KILOBITS_PER_SECOND = UnitOfDataRate.KILOBITS_PER_SECOND DATA_RATE_MEGABITS_PER_SECOND = UnitOfDataRate.MEGABITS_PER_SECOND DATA_RATE_GIGABITS_PER_SECOND = UnitOfDataRate.GIGABITS_PER_SECOND DATA_RATE_BYTES_PER_SECOND = UnitOfDataRate.BYTES_PER_SECOND DATA_RATE_KILOBYTES_PER_SECOND = UnitOfDataRate.KILOBYTES_PER_SECOND DATA_RATE_MEGABYTES_PER_SECOND = UnitOfDataRate.MEGABYTES_PER_SECOND DATA_RATE_GIGABYTES_PER_SECOND = UnitOfDataRate.GIGABYTES_PER_SECOND DATA_RATE_KIBIBYTES_PER_SECOND = UnitOfDataRate.KIBIBYTES_PER_SECOND DATA_RATE_MEBIBYTES_PER_SECOND = UnitOfDataRate.MEBIBYTES_PER_SECOND DATA_RATE_GIBIBYTES_PER_SECOND = UnitOfDataRate.GIBIBYTES_PER_SECOND ENTITY_CATEGORY_CONFIG = EntityCategory.CONFIG ENTITY_CATEGORY_DIAGNOSTIC = EntityCategory.DIAGNOSTIC TEMP_CELSIUS = UnitOfTemperature.CELSIUS
Hello @LHBL2003,
thanks for reporting!
I've checked the code but I don't find any usage of the mention variables except that one:
I will resolve this any to explicit imports and hopefully it will be gone.
Hello @LHBL2003,
The warnings should be removed with v1.3.7. Let me know if this ticket is good to be closed.
Do you get this error when you reload the Eltako Hub?
Yes, that is in from the very first moment. So far the priority was not real high for me to remove it because it doesn't break something. Of course it is not really nice. After the big clean up in 1.3.7 those are the last error messages I'm aware of.
I checked some options to avoid the creation of entities if they are already available but so far I was not successful.
The log file reports a lot of early warnings like this:
2024-02-02 20:22:24.686 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_AQI was used from eltako, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.AQI instead, please create a bug report at https://github.com/grimmpp/home-assistant-eltako/issues
home-assistant_Log_Constant_Warnings.txt
HA version used: Version core-2024.1.6 Host operating system Home Assistant OS 11.4 Supervisor version supervisor-2023.12.1 Python version 3.11.6 Operating system version 6.1.63-haos-raspi