mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-11 03:16:28 +00:00
Align documented device_tracker attributes with implementation (#1918)
This commit is contained in:
parent
cef5aaee4e
commit
29acff9b82
@ -22,13 +22,13 @@ ScannerEntity does not support attribute shorthand for [property implementation]
|
||||
:::
|
||||
|
||||
| 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. |
|
||||
| ------------- | ---------------------------- | ------------ | ----------------------------------------------------- |
|
||||
| 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
|
||||
|
||||
@ -53,10 +53,10 @@ TrackerEntity does not support attribute shorthand for [property implementation]
|
||||
:::
|
||||
|
||||
| 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. |
|
||||
| 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. |
|
||||
|
Loading…
x
Reference in New Issue
Block a user