Updated openvse sensor component to use new structure of openevsewifi library.

This commit is contained in:
miniconfig 2017-02-02 21:46:35 -05:00
parent 495b0667e9
commit 4b62a0d924
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ from homeassistant.const import CONF_MONITORED_VARIABLES
from homeassistant.helpers.entity import Entity
_LOGGER = logging.getLogger(__name__)
REQUIREMENTS = ['openevsewifi==0.2']
REQUIREMENTS = ['openevsewifi==0.4']
SENSOR_TYPES = {
'status': ['Charging Status', None],
'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):
"""Setup the OpenEVSE sensor."""
from openevsewifi import openevsewifi
import openevsewifi
host = config.get(CONF_HOST)
monitored_variables = config.get(CONF_MONITORED_VARIABLES)

View file

@ -334,7 +334,7 @@ neurio==0.3.1
oauth2client==3.0.0
# homeassistant.components.sensor.openevse
openevsewifi==0.2
openevsewifi==0.4
# homeassistant.components.switch.orvibo
orvibo==1.1.1