mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-09 18:36:29 +00:00
Align documented device_tracker attributes with implementation (#1918)
This commit is contained in:
parent
cef5aaee4e
commit
29acff9b82
@ -21,14 +21,14 @@ Properties should always only return information from memory and not do I/O (lik
|
||||
ScannerEntity does not support attribute shorthand for [property implementation](../entity.md#entity-class-or-instance-attributes)
|
||||
:::
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| ------------- | ------- | ------------ | ------------------------------------------------- |
|
||||
| source_type | SourceType | **Required** | The source type, eg `gps` or `router`, of the device. |
|
||||
| is_connected | boolean | **Required** | The connection state of the device. |
|
||||
| battery_level | integer | `None` | The battery level of the device. |
|
||||
| ip_address | string | `None` | The IP address of the device. |
|
||||
| mac_address | string | `None` | The MAC address of the device. |
|
||||
| hostname | string | `None` | The hostname of the device. |
|
||||
| Name | Type | Default | Description |
|
||||
| ------------- | ---------------------------- | ------------ | ----------------------------------------------------- |
|
||||
| battery_level | <code>int | None</code> | `None` | The battery level of the device. |
|
||||
| hostname | <code>str | None</code> | `None` | The hostname of the device. |
|
||||
| ip_address | <code>str | None</code> | `None` | The IP address of the device. |
|
||||
| is_connected | `bool` | **Required** | The connection state of the device. |
|
||||
| mac_address | <code>str | None</code> | `None` | The MAC address of the device. |
|
||||
| source_type | `SourceType` | **Required** | The source type, eg `gps` or `router`, of the device. |
|
||||
|
||||
### DHCP discovery
|
||||
|
||||
@ -52,11 +52,11 @@ Properties should always only return information from memory and not do I/O (lik
|
||||
TrackerEntity does not support attribute shorthand for [property implementation](../entity.md#entity-class-or-instance-attributes)
|
||||
:::
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| ----------------- | ------- | ------------ | ------------------------------------------------- |
|
||||
| source_type | SourceType | **Required** | The source type, eg `gps` or `router`, of the device. |
|
||||
| latitude | float | **Required** | The latitude coordinate of the device. |
|
||||
| longitude | float | **Required** | The longitude coordinate of the device. |
|
||||
| battery_level | integer | `None` | The battery level of the device. |
|
||||
| location_accuracy | integer | `None` | The location accuracy (m) of the device. |
|
||||
| location_name | string | `None` | The location name of the device. |
|
||||
| Name | Type | Default | Description |
|
||||
| ----------------- | ------------------------------ | ------------ | ----------------------------------------------------- |
|
||||
| battery_level | <code>int | None</code> | `None` | The battery level of the device. |
|
||||
| latitude | <code>float | None</code> | **Required** | The latitude coordinate of the device. |
|
||||
| location_accuracy | `int` | `0` | The location accuracy (m) of the device. |
|
||||
| location_name | <code>str | None</code> | `None` | The location name of the device. |
|
||||
| longitude | <code>float | None</code> | **Required** | The longitude coordinate of the device. |
|
||||
| source_type | SourceType | **Required** | The source type, eg `gps` or `router`, of the device. |
|
||||
|
Loading…
x
Reference in New Issue
Block a user