Move 'voltage' to const (#9621)

This commit is contained in:
Fabian Affolter 2017-09-29 12:05:02 +02:00 committed by Pascal Vizeli
parent 9381f187a4
commit 52561d4f7c
3 changed files with 6 additions and 4 deletions

View file

@ -11,7 +11,7 @@ import time
import voluptuous as vol
from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA)
from homeassistant.const import (CONF_HOST, CONF_NAME)
from homeassistant.const import (CONF_HOST, CONF_NAME, ATTR_VOLTAGE)
import homeassistant.helpers.config_validation as cv
REQUIREMENTS = ['pyHS100==0.2.4.2']
@ -21,7 +21,6 @@ _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'
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({