Move 'voltage' to const (#9621)
This commit is contained in:
parent
9381f187a4
commit
52561d4f7c
3 changed files with 6 additions and 4 deletions
|
@ -15,7 +15,8 @@ from homeassistant.helpers.entity import Entity
|
|||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
from homeassistant.components.sensor.rest import RestData
|
||||
from homeassistant.const import (
|
||||
ATTR_TEMPERATURE, CONF_API_KEY, CONF_NAME, ATTR_DATE, ATTR_TIME)
|
||||
ATTR_TEMPERATURE, CONF_API_KEY, CONF_NAME, ATTR_DATE, ATTR_TIME,
|
||||
ATTR_VOLTAGE)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
_ENDPOINT = 'http://pvoutput.org/service/r2/getstatus.jsp'
|
||||
|
@ -25,7 +26,6 @@ ATTR_POWER_GENERATION = 'power_generation'
|
|||
ATTR_ENERGY_CONSUMPTION = 'energy_consumption'
|
||||
ATTR_POWER_CONSUMPTION = 'power_consumption'
|
||||
ATTR_EFFICIENCY = 'efficiency'
|
||||
ATTR_VOLTAGE = 'voltage'
|
||||
|
||||
CONF_SYSTEM_ID = 'system_id'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue