From 44838937d1e2810fd99a7c2173f802625aaff6b2 Mon Sep 17 00:00:00 2001 From: Dan Chen Date: Thu, 28 Sep 2017 12:12:02 -0700 Subject: [PATCH] Change TP-Link Switch power statistics attribute names (#9607) --- homeassistant/components/switch/tplink.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/switch/tplink.py b/homeassistant/components/switch/tplink.py index 1b8ef585557..2f695c0bfc1 100644 --- a/homeassistant/components/switch/tplink.py +++ b/homeassistant/components/switch/tplink.py @@ -18,11 +18,11 @@ REQUIREMENTS = ['pyHS100==0.2.4.2'] _LOGGER = logging.getLogger(__name__) -ATTR_CURRENT_CONSUMPTION = 'Current consumption' -ATTR_TOTAL_CONSUMPTION = 'Total consumption' -ATTR_DAILY_CONSUMPTION = 'Daily consumption' -ATTR_VOLTAGE = 'Voltage' -ATTR_CURRENT = 'Current' +ATTR_CURRENT_CONSUMPTION = 'current_consumption' +ATTR_TOTAL_CONSUMPTION = 'total_consumption' +ATTR_DAILY_CONSUMPTION = 'daily_consumption' +ATTR_VOLTAGE = 'voltage' +ATTR_CURRENT = 'current' PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_HOST): cv.string,