From cfae0e523e1ce3c513ae38c801a627412e32161e Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 17 Sep 2018 13:39:40 +0200 Subject: [PATCH] Add via_hub docs (#88) --- docs/device_registry_index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/device_registry_index.md b/docs/device_registry_index.md index f6343509..db1cce1b 100644 --- a/docs/device_registry_index.md +++ b/docs/device_registry_index.md @@ -15,11 +15,12 @@ The device registry is a registry where Home Assistant keeps track of devices. A | id | Unique ID of device (generated by Home Assistant) | name | Name of this device | connections | A set of tuples of `(connection_type, connection identifier)`. Connection types are defined in the device registry module. -| identifiers | Identifiers identify the device in the outside world. An example is a serial number. +| 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. | config_entries | Config entries that are linked to this device. | sw_version | The firmware version of the device. +| via_hub | A single identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs. ## Defining devices @@ -42,6 +43,7 @@ class HueLight(LightEntity): 'manufacturer': self.light.manufacturername, 'model': self.light.productname, 'sw_version': self.light.swversion, + 'via_hub': (hue.DOMAIN, self.api.bridgeid), } ```