Updated openvse sensor component to use new structure of openevsewifi library.
This commit is contained in:
1 parent
495b0667e9
commit
4b62a0d924
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user