Change attribute names (#9277)
Remove spaces and capitals in attribute names to be consistent with sensors and other switches.pull/9279/head
parent
db36b5cd23
commit
7694c31814
|
@ -23,9 +23,9 @@ DEFAULT_PASSWORD = ''
|
|||
DEFAULT_USERNAME = 'admin'
|
||||
CONF_USE_LEGACY_PROTOCOL = 'use_legacy_protocol'
|
||||
|
||||
ATTR_CURRENT_CONSUMPTION = 'Current Consumption'
|
||||
ATTR_TOTAL_CONSUMPTION = 'Total Consumption'
|
||||
ATTR_TEMPERATURE = 'Temperature'
|
||||
ATTR_CURRENT_CONSUMPTION = 'power_consumption'
|
||||
ATTR_TOTAL_CONSUMPTION = 'total_consumption'
|
||||
ATTR_TEMPERATURE = 'temperature'
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
vol.Required(CONF_HOST): cv.string,
|
||||
|
|
Loading…
Reference in New Issue