guerrerotook / securitas-direct-new-api

This repository contains the new securitas direct API that can be integrated in Home Assistant
Apache License 2.0
73 stars 30 forks source link

FORMAT_NUMBER constant deprecated #188

Closed AdriVillaB closed 6 months ago

AdriVillaB commented 6 months ago

Hi,

I've upgraded to HomeAsssistant 2024.1 yesterday, and it seems they will deprecate the constant FORMAT_NUMBER in 2025.1, so there is a warning message on the log. They recommed to use CodeFormat.NUMBER instead.

This is the error:

2024-01-04 10:25:36.075 WARNING (MainThread) [homeassistant.components.alarm_control_panel] FORMAT_NUMBER was used from securitas, this is a deprecated constant which will be removed in HA Core 2025.1. Use CodeFormat.NUMBER instead, please create a bug report at https://github.com/guerrerotook/securitas-direct-new-api/issues

Thanks!

myroom commented 6 months ago

And I have the same problem:

2024-01-04 16:59:40.211 WARNING (MainThread) [homeassistant.components.alarm_control_panel] FORMAT_NUMBER was used from securitas, this is a deprecated constant which will be removed in HA Core 2025.1. Use CodeFormat.NUMBER instead, please create a bug report at https://github.com/guerrerotook/securitas-direct-new-api/issues

Tanjohnson99 commented 6 months ago

Same issue here : Logger: homeassistant.components.alarm_control_panel Source: helpers/deprecation.py:204 Integration: Alarm control panel (documentation, issues) First occurred: 08:47:11 (265 occurrences) Last logged: 12:59:11

FORMAT_NUMBER was used from securitas, this is a deprecated constant which will be removed in HA Core 2025.1. Use CodeFormat.NUMBER instead, please create a bug report at https://github.com/guerrerotook/securitas-direct-new-api/issues

guerrerotook commented 6 months ago

Thanks @AdriVillaB for the PR, is already approved.