mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 01:46:29 +00:00
Update device registry for suggested_area
This commit is contained in:
parent
82f30a3050
commit
21060a8fbd
@ -32,6 +32,7 @@ Although not currently available, we could consider offering an option to users
|
||||
| identifiers | Set of identifiers. They identify the device in the outside world. An example is a serial number. |
|
||||
| manufacturer | The manufacturer of the device. |
|
||||
| model | The model of the device. |
|
||||
| suggested_area | The suggested name for the area the device is located. |
|
||||
| config_entries | Config entries that are linked to this device. |
|
||||
| sw_version | The firmware version of the device. |
|
||||
| via_device | Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant. |
|
||||
@ -79,6 +80,7 @@ device_registry.async_get_or_create(
|
||||
connections={(dr.CONNECTION_NETWORK_MAC, config.mac)},
|
||||
identifiers={(DOMAIN, config.bridgeid)},
|
||||
manufacturer="Signify",
|
||||
suggested_area="Kitchen",
|
||||
name=config.name,
|
||||
model=config.modelid,
|
||||
sw_version=config.swversion,
|
||||
|
Loading…
x
Reference in New Issue
Block a user