SecKatie / ha-wyzeapi

Home Assistant Integration for Wyze devices.
733 stars 112 forks source link

[Bug] deprecated constant - many warnings #536

Closed glyndon closed 6 months ago

glyndon commented 7 months ago

Describe the bug HA Logs receiving warnings about deprecated constants from wyzeapi integr.

To Reproduce View HA log

Expected behavior No warnings of this type

System configuration System: core HA Version: 2024.1.0 WyzeApi Version: 1.23

home-assistant.log

2024-01-04 08:06:49.780 WARNING (MainThread) [homeassistant.components.climate] SUPPORT_TARGET_TEMPERATURE_RANGE was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE_RANGE instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.787 WARNING (MainThread) [homeassistant.components.climate] SUPPORT_PRESET_MODE was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.PRESET_MODE instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.794 WARNING (MainThread) [homeassistant.components.climate] SUPPORT_FAN_MODE was used from wyzeapi, 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/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.800 WARNING (MainThread) [homeassistant.components.climate] SUPPORT_TARGET_TEMPERATURE_RANGE was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE_RANGE instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.807 WARNING (MainThread) [homeassistant.components.climate] SUPPORT_PRESET_MODE was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.PRESET_MODE instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.814 WARNING (MainThread) [homeassistant.components.climate] SUPPORT_FAN_MODE was used from wyzeapi, 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/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.820 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_AUTO was used from wyzeapi, 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/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.827 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_HEAT was used from wyzeapi, 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/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.833 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_COOL was used from wyzeapi, 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/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.840 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_OFF was used from wyzeapi, 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/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.846 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_IDLE was used from wyzeapi, 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/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.853 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_HEAT was used from wyzeapi, 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/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.859 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_COOL was used from wyzeapi, 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/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.866 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_OFF was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.OFF instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.874 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from wyzeapi, 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/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:49.890 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from wyzeapi, 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/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:50.497 WARNING (MainThread) [homeassistant.components.siren] SUPPORT_TURN_OFF was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use SirenEntityFeature.TURN_OFF instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:50.504 WARNING (MainThread) [homeassistant.components.siren] SUPPORT_TURN_ON was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use SirenEntityFeature.TURN_ON instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:50.511 WARNING (MainThread) [homeassistant.components.siren] SUPPORT_TURN_OFF was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use SirenEntityFeature.TURN_OFF instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:50.518 WARNING (MainThread) [homeassistant.components.siren] SUPPORT_TURN_ON was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use SirenEntityFeature.TURN_ON instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:50.529 WARNING (MainThread) [homeassistant.components.alarm_control_panel] SUPPORT_ALARM_ARM_HOME was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_HOME instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:50.535 WARNING (MainThread) [homeassistant.components.alarm_control_panel] SUPPORT_ALARM_ARM_AWAY was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_AWAY instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:50.542 WARNING (MainThread) [homeassistant.components.alarm_control_panel] SUPPORT_ALARM_ARM_HOME was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_HOME instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:50.548 WARNING (MainThread) [homeassistant.components.alarm_control_panel] SUPPORT_ALARM_ARM_AWAY was used from wyzeapi, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_AWAY instead, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues
2024-01-04 08:06:52.995 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.wyzeapi.siren.WyzeCameraSiren'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <SirenEntityFeature.TURN_ON|TURN_OFF: 3>, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-04 08:06:52.996 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.wyzeapi.siren.WyzeCameraSiren'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <SirenEntityFeature.TURN_ON|TURN_OFF: 3>, please create a bug report at https://github.com/SecKatie/ha-wyzeapi/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
Czanron commented 7 months ago

Running 2024.1.2 core with 0.1.23 WyzeApi and receiving similar warnings.

Seems to be an issue across the board for a variety of integrations.

TEfjLONjDON commented 7 months ago

Me too.many errors

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

glyndon commented 6 months ago

Closing due to action taken by owner/team to rectify.