Updated openvse sensor component to use new structure of openevsewifi library.
This commit is contained in:
parent
495b0667e9
commit
4b62a0d924
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue