Add blog post on deprecation of DeviceEntry.suggested_area (#2740)

This commit is contained in:
Erik Montnemery
2025-08-19 13:22:45 +02:00
committed by GitHub
parent 72c02f345e
commit da6574c0f5
2 changed files with 76 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
---
author: Erik Montnemery
authorURL: https://github.com/emontnemery
title: "The DeviceEntry.suggested_area attribute is deprecated and will be removed"
---
The `DeviceEntry.suggested_area` attribute is deprecated and will be removed in HA Core 2026.9. Also, `suggested_area` will no longer be present in `EVENT_DEVICE_REGISTRY_UPDATED` events when HA Core 2026.9 is released.
Note:
Setting `suggested_area` in `DeviceInfo`, and passing `suggested_area` to `DeviceRegistry.async_get_or_create` is still supported and influences the area of created devices, although that may change in the future.
Use `DeviceEntry.area_id` to determine a devices area in custom integrations. Dont access `DeviceEntry.suggested_area`.
During the deprecation period, accessing `DeviceEntry.suggested_area` will log a warning.
For more details, refer to the [DeviceEntry documentation](/docs/device_registry_index#device-properties) and core [PR 149730](https://github.com/home-assistant/core/pull/149730) which deprecated `DeviceEntry.suggested_area`.