Change TP-Link Switch power statistics attribute names (#9607)

pull/9343/merge
Dan Chen 2017-09-28 12:12:02 -07:00 committed by Paulus Schoutsen
parent 8b6a5eef4c
commit 44838937d1
1 changed files with 5 additions and 5 deletions

View File

@ -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,