fix error in example code (#13974)

added missing "sensors:" to line 92
This commit is contained in:
quiglag 2020-07-11 09:49:45 -07:00 committed by GitHub
parent 0581ad2c3a
commit 18e04289dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,6 +89,7 @@ Adapted from the [TP-Link integration](https://www.home-assistant.io/integration
```yaml
sensor:
- platform: template
sensors:
vesync_switch_watts:
friendly_name_template: "{{ states.switch.vesync_switch.name}} Current Consumption"
value_template: '{{ states.switch.vesync_switch.attributes["current_power_w"] | float }}'