home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
68.72k stars 28.06k forks source link

manual using deprecated constants and complaining for the future; requires changes #115600

Open dsegantx opened 2 weeks ago

dsegantx commented 2 weeks ago

The problem

manual (alarm integration) imports homeassistant/components/alarm_control_panel/const.py. This has several variables flagged as future deprecation.

The surfaced errors say manual needs to be changed.

I don't understand why the deprecation was introduced but manual wasn't fixed along with it; here's the request.

What version of Home Assistant Core has the issue?

core-2024.4.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

manual

Link to integration documentation on our website

https://www.home-assistant.io/integrations/manual/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-04-13 20:22:36.724 WARNING (ImportExecutor_0) [homeassistant.components.alarm_control_panel.const] SUPPORT_ALARM_ARM_AWAY was used from manual, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_AWAY instead, please report it to the author of the 'manual' custom integration
2024-04-13 20:22:36.732 WARNING (ImportExecutor_0) [homeassistant.components.alarm_control_panel.const] SUPPORT_ALARM_ARM_CUSTOM_BYPASS was used from manual, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_CUSTOM_BYPASS instead, please report it to the author of the 'manual' custom integration
2024-04-13 20:22:36.740 WARNING (ImportExecutor_0) [homeassistant.components.alarm_control_panel.const] SUPPORT_ALARM_ARM_HOME was used from manual, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_HOME instead, please report it to the author of the 'manual' custom integration
2024-04-13 20:22:36.747 WARNING (ImportExecutor_0) [homeassistant.components.alarm_control_panel.const] SUPPORT_ALARM_ARM_NIGHT was used from manual, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_NIGHT instead, please report it to the author of the 'manual' custom integration
2024-04-13 20:22:36.755 WARNING (ImportExecutor_0) [homeassistant.components.alarm_control_panel.const] SUPPORT_ALARM_TRIGGER was used from manual, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.TRIGGER instead, please report it to the author of the 'manual' custom integration
2024-04-13 20:22:36.775 WARNING (MainThread) [homeassistant.components.alarm_control_panel] FORMAT_NUMBER was used from manual, this is a deprecated constant which will be removed in HA Core 2025.1. Use CodeFormat.NUMBER instead, please report it to the author of the 'manual' custom integration

Additional information

Introduced by this: https://github.com/home-assistant/core/commit/ea28b74fe91a7fb2ec6636d9d0843b2c5e4f4363

home-assistant[bot] commented 2 weeks ago

manual documentation manual source