mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-04-19 10:57:14 +00:00
Update device_tracker source_type properties (#1414)
This commit is contained in:
parent
fab15d517c
commit
c215fcbcb5
16
blog/2022-07-29-device-tracker_source-type-deprecation.md
Normal file
16
blog/2022-07-29-device-tracker_source-type-deprecation.md
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
author: Marc Mueller
|
||||
authorURL: https://github.com/cdce8p
|
||||
title: "Device tracker deprecations for 2022.9"
|
||||
---
|
||||
|
||||
For Home Assistant Core 2022.9, we have deprecated the `device_tracker`
|
||||
`SOURCE_TYPE_*` constants.
|
||||
Use the new [`SourceType`](/docs/core/entity/device-tracker) enum instead.
|
||||
|
||||
Deprecated constants:
|
||||
|
||||
- `SOURCE_TYPE_GPS`
|
||||
- `SOURCE_TYPE_ROUTER`
|
||||
- `SOURCE_TYPE_BLUETOOTH`
|
||||
- `SOURCE_TYPE_BLUETOOTH_LE`
|
@ -23,7 +23,7 @@ ScannerEntity does not support attribute shorthand for [property implementation]
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| ------------- | ------- | ------------ | ------------------------------------------------- |
|
||||
| source_type | string | **Required** | The source type, eg `gps` or `router`, of the device. |
|
||||
| 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. |
|
||||
@ -54,7 +54,7 @@ TrackerEntity does not support attribute shorthand for [property implementation]
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| ----------------- | ------- | ------------ | ------------------------------------------------- |
|
||||
| source_type | string | **Required** | The source type, eg `gps` or `router`, of the device. |
|
||||
| source_type | SourceType | **Required** | The source type, eg `gps` or `router`, of the device. |
|
||||
| latitude | string | **Required** | The latitude coordinate of the device. |
|
||||
| longitude | string | **Required** | The longitude coordinate of the device. |
|
||||
| battery_level | integer | `None` | The battery level of the device. |
|
||||
|
Loading…
x
Reference in New Issue
Block a user