Update device registry for suggested_area

This commit is contained in:
J. Nick Koston 2021-02-19 13:12:43 -10:00 committed by GitHub
parent 82f30a3050
commit 21060a8fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,