From 7ae234683426f3bf42b0320a36e54a098daa06bb Mon Sep 17 00:00:00 2001 From: Shay Levy Date: Sun, 27 Jun 2021 19:11:42 +0300 Subject: [PATCH] Deprecate Switch entity properties (#982) Co-authored-by: Paulus Schoutsen --- docs/core/entity/switch.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/core/entity/switch.md b/docs/core/entity/switch.md index aeb7bfb4..36668e25 100644 --- a/docs/core/entity/switch.md +++ b/docs/core/entity/switch.md @@ -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.