apetrycki / daikinskyport

API for accessing a DaikinOne+ Thermostat
63 stars 27 forks source link

Deprecated constants in Core 2024.1.0b3 #91

Closed jeffjumper closed 10 months ago

jeffjumper commented 10 months ago

I put your latest changes from #90 into my beta system this morning and these are the deprecation warnings from my log:

2024-01-01 10:48:49.895 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from daikinskyport, 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/apetrycki/daikinskyport/issues 2024-01-01 10:48:49.902 WARNING (MainThread) [homeassistant.const] POWER_WATT was used from daikinskyport, 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/apetrycki/daikinskyport/issues 2024-01-01 10:48:49.940 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_COOL was used from daikinskyport, 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/apetrycki/daikinskyport/issues 2024-01-01 10:48:49.946 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_HEAT was used from daikinskyport, 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/apetrycki/daikinskyport/issues 2024-01-01 10:48:49.953 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_AUTO was used from daikinskyport, 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/apetrycki/daikinskyport/issues 2024-01-01 10:48:49.970 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_OFF was used from daikinskyport, 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/apetrycki/daikinskyport/issues 2024-01-01 10:48:49.979 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_IDLE was used from daikinskyport, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.IDLE instead, please create a bug report at https://github.com/apetrycki/daikinskyport/issues 2024-01-01 10:48:49.985 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_HEAT was used from daikinskyport, 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/apetrycki/daikinskyport/issues 2024-01-01 10:48:49.993 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_COOL was used from daikinskyport, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.COOLING instead, please create a bug report at https://github.com/apetrycki/daikinskyport/issues 2024-01-01 10:48:49.999 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_FAN was used from daikinskyport, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.FAN instead, please create a bug report at https://github.com/apetrycki/daikinskyport/issues 2024-01-01 10:48:50.005 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_DRY was used from daikinskyport, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.DRYING instead, please create a bug report at https://github.com/apetrycki/daikinskyport/issues

Thanks for your work on this integration!

apetrycki commented 10 months ago

Ok, looks like they're still working on deprecations, so I'll hold off until the release version and make all the changes at once.

apetrycki commented 10 months ago

I added these, so let me know if you're still seeing any

jeffjumper commented 10 months ago

Looks like you got most of them but there's still one more:


2024-01-04 10:01:04.026 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from daikinskyport, 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/apetrycki/daikinskyport/issues
apetrycki commented 10 months ago

Looks like I forgot to remove the import. Should be all set now.

jeffjumper commented 10 months ago

Looks good now. Thanks again!