alexa_media_player icon indicating copy to clipboard operation
alexa_media_player copied to clipboard

Alexa Guard warning within log on 2024.1.0 Home Assistant

Open MichaelStruck opened this issue 1 year ago • 5 comments

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

MichaelStruck avatar Jan 04 '24 05:01 MichaelStruck

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

figorr avatar Jan 05 '24 00:01 figorr

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

fahimi73 avatar Jan 06 '24 10:01 fahimi73

~~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.

amaisano avatar Jan 09 '24 23:01 amaisano

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

Starstrike avatar Jan 22 '24 21:01 Starstrike

Thats seem an easy fix.

  • from (library) import AlarmControlPanelEntityFeature

replace contant ARM_AWAY with AlarmControlPanelEntityFeature.ARM_AWAY

mrai64 avatar Feb 18 '24 15:02 mrai64