From 70a593db0abbb0b361e11bfc446d8cd1267a999b Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Sun, 25 Apr 2021 13:50:25 +0200 Subject: [PATCH] Remove redundant conversion for TP-Link template entities (#17348) --- source/_integrations/tplink.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/_integrations/tplink.markdown b/source/_integrations/tplink.markdown index ea721e7d917..2270bf08b27 100644 --- a/source/_integrations/tplink.markdown +++ b/source/_integrations/tplink.markdown @@ -161,23 +161,23 @@ sensor: sensors: my_tp_switch_amps: friendly_name_template: "{{ state_attr('switch.my_tp_switch','friendly_name') }} Current" - value_template: "{{ state_attr('switch.my_tp_switch','current_a') | float }}" + value_template: "{{ state_attr('switch.my_tp_switch','current_a') }}" unit_of_measurement: "A" my_tp_switch_watts: friendly_name_template: "{{ state_attr('switch.my_tp_switch','friendly_name') }} Current Consumption" - value_template: "{{ state_attr('switch.my_tp_switch','current_power_w') | float }}" + value_template: "{{ state_attr('switch.my_tp_switch','current_power_w') }}" unit_of_measurement: "W" my_tp_switch_total_kwh: friendly_name_template: "{{ state_attr('switch.my_tp_switch','friendly_name') }} Total Consumption" - value_template: "{{ state_attr('switch.my_tp_switch','total_energy_kwh') | float }}" + value_template: "{{ state_attr('switch.my_tp_switch','total_energy_kwh') }}" unit_of_measurement: "kWh" my_tp_switch_volts: friendly_name_template: "{{ state_attr('switch.my_tp_switch','friendly_name') }} Voltage" - value_template: "{{ state_attr('switch.my_tp_switch','voltage') | float }}" + value_template: "{{ state_attr('switch.my_tp_switch','voltage') }}" unit_of_measurement: "V" my_tp_switch_today_kwh: friendly_name_template: "{{ state_attr('switch.my_tp_switch','friendly_name') }} Today's Consumption" - value_template: "{{ state_attr('switch.my_tp_switch','today_energy_kwh') | float }}" + value_template: "{{ state_attr('switch.my_tp_switch','today_energy_kwh') }}" unit_of_measurement: "kWh" ```