Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[WARNING] Switching to AlarmControlPanelState instead of setting state directly. #137

Closed
r0bb10 opened this issue Nov 8, 2024 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@r0bb10
Copy link

r0bb10 commented Nov 8, 2024

Entity None (<class 'custom_components.hikvision_axpro.alarm_control_panel.HikAxProPanel'>) is setting state directly which will stop working in HA Core 2025.11. Entities should implement the 'alarm_state' property and return its state using the AlarmControlPanelState enum, please report it to the custom integration author.

Also reported after 2024.11 update.

@petrleocompel
Copy link
Owner

Will be fixed by #138

@petrleocompel
Copy link
Owner

Released as v3.0.0-beta2

Later it will be upstreamed to "master" and pushed to "stable" release of 3.0.0.

@r0bb10
Copy link
Author

r0bb10 commented Dec 9, 2024

@petrleocompel this is the new error report from hass after updating to 3b2

Detected that custom integration 'hikvision_axpro' is setting state directly. Entity None (<class 'custom_components.hikvision_axpro.alarm_control_panel.HikAxProPanel'>) should implement the 'alarm_state' property and return its state using the AlarmControlPanelState enum at custom_components/hikvision_axpro/alarm_control_panel.py, line 44: async_add_entities(panels, False). This will stop working in Home Assistant 2025.11, please create a bug report at https://github.com/petrleocompel/hikaxpro_hacs/issues

@petrleocompel petrleocompel reopened this Dec 12, 2024
@petrleocompel petrleocompel self-assigned this Dec 12, 2024
@petrleocompel petrleocompel added the bug Something isn't working label Dec 12, 2024
@petrleocompel petrleocompel added this to the 3.0.0 milestone Dec 12, 2024
@petrleocompel
Copy link
Owner

Released as v3.0.0-beta4

Later it will be upstreamed to "master" and pushed to "stable" release of 3.0.0.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants