mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-11-15 22:10:14 +00:00
Add blog post on deprecation of DeviceEntry.suggested_area (#2740)
This commit is contained in:
16
blog/2025-08-01-suggested-area-removed-from-deviceentry.md
Normal file
16
blog/2025-08-01-suggested-area-removed-from-deviceentry.md
Normal 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 device’s area in custom integrations. Don’t 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`.
|
||||
Reference in New Issue
Block a user