Change TP-Link Switch power statistics attribute names (#9607)
parent
8b6a5eef4c
commit
44838937d1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue