Sort device registry attributes (#1445)

* Sort device registry attributes

* Update device_registry_index.md
This commit is contained in:
Erik Montnemery 2022-08-25 13:13:31 +02:00 committed by GitHub
parent 99cdc199de
commit 2fa61058a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,10 +29,11 @@ Although not currently available, we could consider offering an option to users
| config_entries | Config entries that are linked to this device. | | config_entries | Config entries that are linked to this device. |
| configuration_url | A URL on which the device or service can be configured, linking to paths inside the Home Assistant UI can be done by using `homeassistant://<path>`. | | configuration_url | A URL on which the device or service can be configured, linking to paths inside the Home Assistant UI can be done by using `homeassistant://<path>`. |
| connections | A set of tuples of `(connection_type, connection identifier)`. Connection types are defined in the device registry module. | | connections | A set of tuples of `(connection_type, connection identifier)`. Connection types are defined in the device registry module. |
| default_name | Default name of this device, will be overridden if `name` is set. Useful for example for an integration showing all devices on the network. |
| default_manufacturer | The manufacturer of the device, will be overridden if `manufacturer` is set. Useful for example for an integration showing all devices on the network. | | default_manufacturer | The manufacturer of the device, will be overridden if `manufacturer` is set. Useful for example for an integration showing all devices on the network. |
| default_model | The model of the device, will be overridden if `model` is set. Useful for example for an integration showing all devices on the network. | | default_model | The model of the device, will be overridden if `model` is set. Useful for example for an integration showing all devices on the network. |
| default_name | Default name of this device, will be overridden if `name` is set. Useful for example for an integration showing all devices on the network. |
| entry_type | The type of entry. Possible values are `None` and `DeviceEntryType` enum members (only `service`). | | entry_type | The type of entry. Possible values are `None` and `DeviceEntryType` enum members (only `service`). |
| hw_version | The hardware version of the device. |
| id | Unique ID of device (generated by Home Assistant) | | id | Unique ID of device (generated by Home Assistant) |
| identifiers | Set of `(DOMAIN, identifier)` tuples. Identifiers identify the device in the outside world. An example is a serial number. | | identifiers | Set of `(DOMAIN, identifier)` tuples. Identifiers identify the device in the outside world. An example is a serial number. |
| name | Name of this device | | name | Name of this device |
@ -40,7 +41,6 @@ Although not currently available, we could consider offering an option to users
| model | The model of the device. | | model | The model of the device. |
| suggested_area | The suggested name for the area where the device is located. | | suggested_area | The suggested name for the area where the device is located. |
| sw_version | The firmware version of the device. | | sw_version | The firmware version of the device. |
| hw_version | The hardware 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. | | 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. |
## Defining devices ## Defining devices