bm1549 / home-assistant-frigidaire

Custom component for the Frigidaire integration
30 stars 10 forks source link

Deprecation warnings with 2024.1.0 #42

Closed sweharris closed 2 weeks ago

sweharris commented 6 months ago

I suspect you're aware of this, but I thought I'd raise the issue just so it's documented.

After an update to 2024.1.0

2024-01-03 20:08:05.359 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_AUTO was used from frigidaire, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.AUTO instead, please create a bug report at https://github.com/bm1549/home-assistant-frigidaire/issues
2024-01-03 20:08:05.361 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_COOL was used from frigidaire, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.COOL instead, please create a bug report at https://github.com/bm1549/home-assistant-frigidaire/issues
2024-01-03 20:08:05.364 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_FAN_ONLY was used from frigidaire, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.FAN_ONLY instead, please create a bug report at https://github.com/bm1549/home-assistant-frigidaire/issues
2024-01-03 20:08:05.366 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_OFF was used from frigidaire, 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/bm1549/home-assistant-frigidaire/issues
2024-01-03 20:08:05.369 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_FAN_MODE was used from frigidaire, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.FAN_MODE instead, please create a bug report at https://github.com/bm1549/home-assistant-frigidaire/issues
2024-01-03 20:08:05.371 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_TARGET_TEMPERATURE was used from frigidaire, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE instead, please create a bug report at https://github.com/bm1549/home-assistant-frigidaire/issues
2024-01-03 20:08:05.374 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from frigidaire, 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/bm1549/home-assistant-frigidaire/issues
2024-01-03 20:08:05.376 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from frigidaire, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead, please create a bug report at https://github.com/bm1549/home-assistant-frigidaire/issues
2024-01-03 20:08:05.405 WARNING (MainThread) [homeassistant.components.humidifier.const] DEVICE_CLASS_DEHUMIDIFIER was used from frigidaire, this is a deprecated constant which will be removed in HA Core 2025.1. Use HumidifierDeviceClass.DEHUMIDIFIER instead, please create a bug report at https://github.com/bm1549/home-assistant-frigidaire/issues
2024-01-03 20:08:05.407 WARNING (MainThread) [homeassistant.components.humidifier.const] SUPPORT_MODES was used from frigidaire, this is a deprecated constant which will be removed in HA Core 2025.1. Use HumidifierEntityFeature.MODES instead, please create a bug report at https://github.com/bm1549/home-assistant-frigidaire/issues
2024-01-03 20:08:09.845 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.frigidaire.climate.FrigidaireClimate'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE|FAN_MODE: 9>, please create a bug report at https://github.com/bm1549/home-assistant-frigidaire/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
ha-elguano commented 6 months ago

I'm not sure if this is related to @sweharris's comment above, but after the last update to Core 2024.1, my dehumidifier entity no longer shows up: Status reads: "This entity is no longer being provided by the frigidaire integration. If the entity is no longer in use, delete it in settings."

Oddly enough, my automations that turn the dehumidifier on and off still run, even if I can't control the unit through the UI or see status. Presumably calls to the Frigidaire cloud server are still being passed through correctly.

ha-elguano commented 5 months ago

Sooo....it's working again for me, after HA Core 2024.1.1 updated this morning :)

jhemak commented 5 months ago

Sharing this as well, in case it's helpful:

WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.frigidaire.humidifier.FrigidaireDehumidifier'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <HumidifierEntityFeature.MODES: 1>, please create a bug report at https://github.com/bm1549/home-assistant-frigidaire/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation