Remove spaces from Xiami switch attributes (#8952)

* Attributes of the xiaomi zigbee plug changed.

* Reformat.
This commit is contained in:
Sebastian Muszynski 2017-08-13 09:54:43 +02:00 committed by Daniel Høyer Iversen
parent 79f45b5176
commit 73d6227021

View File

@ -6,9 +6,13 @@ from homeassistant.components.xiaomi import (PY_XIAOMI_GATEWAY, XiaomiDevice)
_LOGGER = logging.getLogger(__name__)
ATTR_LOAD_POWER = 'Load power' # Load power in watts (W)
ATTR_POWER_CONSUMED = 'Power consumed'
ATTR_IN_USE = 'In use'
# Load power in watts (W)
ATTR_LOAD_POWER = 'load_power'
# Total (lifetime) power consumption in watts
ATTR_POWER_CONSUMED = 'power_consumed'
ATTR_IN_USE = 'in_use'
LOAD_POWER = 'load_power'
POWER_CONSUMED = 'power_consumed'
IN_USE = 'inuse'