jseidl / hass-magic_areas

Areas with batteries included for Home Assistant
MIT License
276 stars 28 forks source link

[Bug]: 2024.11 Use of deprecated constants (STATE_ALARM_TRIGGERED) #442

Open teskanoo opened 2 weeks ago

teskanoo commented 2 weeks ago

System Health details

System Information

version core-2024.11.0
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.31-haos-raspi
arch aarch64
timezone America/Vancouver
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok HACS Data | ok GitHub API Calls Remaining | 5000 Installed Version | 2.0.1 Stage | running Available Repositories | 1532 Downloaded Repositories | 51
AccuWeather can_reach_server | ok -- | -- remaining_requests | 46
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | November 7, 2024 at 4:00 PM relayer_connected | true relayer_region | us-east-1 remote_enabled | true remote_connected | true alexa_enabled | false google_enabled | true cloud_ice_servers_enabled | true remote_server | us-east-1-8.ui.nabu.casa certificate_status | ready instance_id | 53b4e1704d444161bc019f78e48a6ee9 can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 13.2.rc1 -- | -- update_channel | beta supervisor_version | supervisor-2024.11.2 agent_version | 1.6.0 docker_version | 27.2.0 disk_total | 116.8 GB disk_used | 22.8 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | File editor (5.8.0), Mosquitto broker (6.0.2), Samba share (12.3.2), Terminal & SSH (9.15.0), AppDaemon (0.13.5), Home Assistant Google Drive Backup (0.112.1), MariaDB (2.6.1), ESPHome (2024.10.2), Piper (1.5.2), Whisper (2.2.0), openWakeWord (1.10.0), Govee to MQTT Bridge (2024.07.13-82ddc6e9)
Dashboards dashboards | 12 -- | -- resources | 32 views | 64 mode | storage
Recorder oldest_recorder_run | November 1, 2024 at 4:09 AM -- | -- current_recorder_run | November 8, 2024 at 12:29 AM estimated_db_size | 703.05 MiB database_engine | mysql database_version | 10.6.12
Spotify api_endpoint_reachable | ok -- | --

Checklist

Describe the issue

Just an incompatibility with current and future versions of home assistant where this code is using deprecated constants...

Reproduction steps

  1. Use the integration
  2. Look in the logs
  3. ...

Debug logs

WARNING (ImportExecutor_0) [homeassistant.const] STATE_ALARM_TRIGGERED was used from magic_areas, this is a deprecated constant which will be removed in HA Core 2025.11. Use AlarmControlPanelState.TRIGGERED instead, please report it to the author of the 'magic_areas' custom integration

Diagnostics dump

No response