Update device_tracker source_type properties (#1414)

This commit is contained in:
Marc Mueller 2022-07-31 13:47:42 +02:00 committed by GitHub
parent fab15d517c
commit c215fcbcb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 2 deletions

View 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`

View File

@ -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. |