mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Updated openvse sensor component to use new structure of openevsewifi library.
This commit is contained in:
parent
495b0667e9
commit
4b62a0d924
@ -18,7 +18,7 @@ from homeassistant.const import CONF_MONITORED_VARIABLES
|
|||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
REQUIREMENTS = ['openevsewifi==0.2']
|
REQUIREMENTS = ['openevsewifi==0.4']
|
||||||
SENSOR_TYPES = {
|
SENSOR_TYPES = {
|
||||||
'status': ['Charging Status', None],
|
'status': ['Charging Status', None],
|
||||||
'charge_time': ['Charge Time Elapsed', 'minutes'],
|
'charge_time': ['Charge Time Elapsed', 'minutes'],
|
||||||
@ -38,7 +38,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||||||
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Setup the OpenEVSE sensor."""
|
"""Setup the OpenEVSE sensor."""
|
||||||
from openevsewifi import openevsewifi
|
import openevsewifi
|
||||||
|
|
||||||
host = config.get(CONF_HOST)
|
host = config.get(CONF_HOST)
|
||||||
monitored_variables = config.get(CONF_MONITORED_VARIABLES)
|
monitored_variables = config.get(CONF_MONITORED_VARIABLES)
|
||||||
|
@ -334,7 +334,7 @@ neurio==0.3.1
|
|||||||
oauth2client==3.0.0
|
oauth2client==3.0.0
|
||||||
|
|
||||||
# homeassistant.components.sensor.openevse
|
# homeassistant.components.sensor.openevse
|
||||||
openevsewifi==0.2
|
openevsewifi==0.4
|
||||||
|
|
||||||
# homeassistant.components.switch.orvibo
|
# homeassistant.components.switch.orvibo
|
||||||
orvibo==1.1.1
|
orvibo==1.1.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user