Deprecate Switch entity properties (#982)

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
Shay Levy 2021-06-27 19:11:42 +03:00 committed by GitHub
parent 5d49aa4119
commit 7ae2346834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,13 @@ Properties should always only return information from memory and not do I/O (lik
| Name | Type | Default | Description
| ---- | ---- | ------- | -----------
| is_on | boolean | **Required** | If the switch is currently on or off.
## Deprecated Properties
The following properties are deprecated and should not be used by new integrations. Provide them as sensors instead.
Name | Type | Default | Description
| ---- | ---- | ------- | -----------
| current_power_w | float | `None` | The current power usage in W.
| today_energy_kwh | float | `None` | Total energy usage in kWh.