Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Alexa Guard warning within log on 2024.1.0 Home Assistant #2161

Closed
MichaelStruck opened this issue Jan 4, 2024 · 5 comments
Closed

Alexa Guard warning within log on 2024.1.0 Home Assistant #2161

MichaelStruck opened this issue Jan 4, 2024 · 5 comments

Comments

@MichaelStruck
Copy link

MichaelStruck commented Jan 4, 2024

IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.

Describe the bug

Received a notice in my log files that says to open a bug report. Arming and Disarming of Alexa Guard continues to work, and I didn't see any other bug reports listing Alexa Guard:

Logger: homeassistant.components.alarm_control_panel
Source: helpers/deprecation.py:204
Integration: Alarm control panel (documentation, issues)
First occurred: 3:47:50 PM (80 occurrences)
Last logged: 9:02:01 PM

SUPPORT_ALARM_ARM_AWAY was used from alexa_media, 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/alandtse/alexa_media_player/issues

To Reproduce

Simply started receiving this after upgrading to 2024.1.0 HA and the latest 4.9.0 version of Alexa Media player. Everything else seems to be working fine.

Expected behavior

N/A

Screenshots

System details

  • Home-assistant (version): 2024.1.0
  • alexa_media (version from const.py or HA startup): 4.9.0
  • alexapy (version from pip show alexapy or HA startup): ??
  • Amazon 2FA is enabled (y/n). <!---We will not debug login issues if unanswered--->: Everything else is working great

Logs
Please provide logs.

Additional context

@figorr
Copy link

figorr commented Jan 5, 2024

It looks that after the update there are also other errors related to deprecated features. I don’t have Alexa Guard in my region but I noticed an error related to some light features values.

Logger: homeassistant.components.light
Source: components/light/init.py:1194
Integration: Luz (documentation, issues)
First occurred: 4 de enero de 2024, 19:51:11 (2 occurrences)
Last logged: 4 de enero de 2024, 19:51:11

Entity None (<class 'custom_components.alexa_media.light.AlexaLight'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature: 1> and color modes, please create a bug report at https://github.com/alandtse/alexa_media_player/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

Entity None (<class 'custom_components.alexa_media.light.AlexaLight'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature: 3> and color modes, please create a bug report at https://github.com/alandtse/alexa_media_player/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

@fahimi73
Copy link

fahimi73 commented Jan 6, 2024

IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.

Describe the bug

Received a notice in my log files that says to open a bug report. Arming and Disarming of Alexa Guard continues to work, and I didn't see any other bug reports listing Alexa Guard:

Logger: homeassistant.components.alarm_control_panel Source: helpers/deprecation.py:204 Integration: Alarm control panel (documentation, issues) First occurred: 3:47:50 PM (80 occurrences) Last logged: 9:02:01 PM

SUPPORT_ALARM_ARM_AWAY was used from alexa_media, 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/alandtse/alexa_media_player/issues

To Reproduce

Simply started receiving this after upgrading to 2024.1.0 HA and the latest 4.9.0 version of Alexa Media player. Everything else seems to be working fine.

Expected behavior

N/A

Screenshots

System details

  • Home-assistant (version): 2024.1.0
  • alexa_media (version from const.py or HA startup): 4.9.0
  • alexapy (version from pip show alexapy or HA startup): ??
  • Amazon 2FA is enabled (y/n). <!---We will not debug login issues if unanswered--->: Everything else is working great

Logs Please provide logs.

Additional context

I faced this error as well

@amaisano
Copy link

amaisano commented Jan 9, 2024

Alexa Guard is no longer working today for me:

"This entity is no longer being provided by the alexa_media integration."

Was working a few days ago. Is the alarm entity no longer something we can get from this integration?

EDIT - Seems Guard was made into a paid feature starting today, so that's why it's no longer here for me.

@Starstrike
Copy link

I'm getting this same warning in the logs every few seconds.

2024-01-22 09:54:12.754 WARNING (MainThread) [homeassistant.components.alarm_control_panel] SUPPORT_ALARM_ARM_AWAY was used from alexa_media, 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/alandtse/alexa_media_player/issues
2024-01-22 09:54:12.755 WARNING (MainThread) [homeassistant.components.alarm_control_panel] SUPPORT_ALARM_ARM_AWAY was used from alexa_media, 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/alandtse/alexa_media_player/issues
2024-01-22 09:54:12.760 WARNING (MainThread) [homeassistant.components.alarm_control_panel] SUPPORT_ALARM_ARM_AWAY was used from alexa_media, 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/alandtse/alexa_media_player/issues
2024-01-22 09:54:12.762 WARNING (MainThread) [homeassistant.components.alarm_control_panel] SUPPORT_ALARM_ARM_AWAY was used from alexa_media, 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/alandtse/alexa_media_player/issues
2024-01-22 09:54:12.768 WARNING (MainThread) [homeassistant.components.alarm_control_panel] SUPPORT_ALARM_ARM_AWAY was used from alexa_media, 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/alandtse/alexa_media_player/issues
2024-01-22 09:54:12.769 WARNING (MainThread) [homeassistant.components.alarm_control_panel] SUPPORT_ALARM_ARM_AWAY was used from alexa_media, 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/alandtse/alexa_media_player/issues
2024-01-22 09:54:16.109 WARNING (MainThread) [homeassistant.components.alarm_control_panel] SUPPORT_ALARM_ARM_AWAY was used from alexa_media, 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/alandtse/alexa_media_player/issues
2024-01-22 09:54:16.111 WARNING (MainThread) [homeassistant.components.alarm_control_panel] SUPPORT_ALARM_ARM_AWAY was used from alexa_media, 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/alandtse/alexa_media_player/issues

@mrai64
Copy link

mrai64 commented Feb 18, 2024

Thats seem an easy fix.

  • from (library) import AlarmControlPanelEntityFeature

replace contant ARM_AWAY with AlarmControlPanelEntityFeature.ARM_AWAY

@alandtse alandtse closed this as completed Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants