mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Update pyvera version.
This commit is contained in:
parent
b64680e4a8
commit
af21f72d17
@ -16,7 +16,7 @@ from homeassistant.components.light import ATTR_BRIGHTNESS
|
|||||||
|
|
||||||
from homeassistant.const import EVENT_HOMEASSISTANT_STOP
|
from homeassistant.const import EVENT_HOMEASSISTANT_STOP
|
||||||
|
|
||||||
REQUIREMENTS = ['pyvera==0.2.2']
|
REQUIREMENTS = ['pyvera==0.2.3']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ from homeassistant.const import (
|
|||||||
ATTR_BATTERY_LEVEL, ATTR_TRIPPED, ATTR_ARMED, ATTR_LAST_TRIP_TIME,
|
ATTR_BATTERY_LEVEL, ATTR_TRIPPED, ATTR_ARMED, ATTR_LAST_TRIP_TIME,
|
||||||
TEMP_CELCIUS, TEMP_FAHRENHEIT, EVENT_HOMEASSISTANT_STOP)
|
TEMP_CELCIUS, TEMP_FAHRENHEIT, EVENT_HOMEASSISTANT_STOP)
|
||||||
|
|
||||||
REQUIREMENTS = ['pyvera==0.2.2']
|
REQUIREMENTS = ['pyvera==0.2.3']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -85,9 +85,7 @@ class VeraSensor(Entity):
|
|||||||
self.current_value = ''
|
self.current_value = ''
|
||||||
self._temperature_units = None
|
self._temperature_units = None
|
||||||
|
|
||||||
self.controller.register(vera_device)
|
self.controller.register(vera_device, self._update_callback)
|
||||||
self.controller.on(
|
|
||||||
vera_device, self._update_callback)
|
|
||||||
|
|
||||||
def _update_callback(self, _device):
|
def _update_callback(self, _device):
|
||||||
""" Called by the vera device callback to update state. """
|
""" Called by the vera device callback to update state. """
|
||||||
|
@ -19,7 +19,7 @@ from homeassistant.const import (
|
|||||||
ATTR_LAST_TRIP_TIME,
|
ATTR_LAST_TRIP_TIME,
|
||||||
EVENT_HOMEASSISTANT_STOP)
|
EVENT_HOMEASSISTANT_STOP)
|
||||||
|
|
||||||
REQUIREMENTS = ['pyvera==0.2.2']
|
REQUIREMENTS = ['pyvera==0.2.3']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -88,9 +88,7 @@ class VeraSwitch(ToggleEntity):
|
|||||||
self._name = self.vera_device.name
|
self._name = self.vera_device.name
|
||||||
self.is_on_status = False
|
self.is_on_status = False
|
||||||
|
|
||||||
self.controller.register(vera_device)
|
self.controller.register(vera_device, self._update_callback)
|
||||||
self.controller.on(
|
|
||||||
vera_device, self._update_callback)
|
|
||||||
|
|
||||||
def _update_callback(self, _device):
|
def _update_callback(self, _device):
|
||||||
""" Called by the vera device callback to update state. """
|
""" Called by the vera device callback to update state. """
|
||||||
|
@ -59,7 +59,7 @@ tellcore-py==1.1.2
|
|||||||
# homeassistant.components.light.vera
|
# homeassistant.components.light.vera
|
||||||
# homeassistant.components.sensor.vera
|
# homeassistant.components.sensor.vera
|
||||||
# homeassistant.components.switch.vera
|
# homeassistant.components.switch.vera
|
||||||
pyvera==0.2.2
|
pyvera==0.2.3
|
||||||
|
|
||||||
# homeassistant.components.wink
|
# homeassistant.components.wink
|
||||||
# homeassistant.components.light.wink
|
# homeassistant.components.light.wink
|
||||||
|
Loading…
x
Reference in New Issue
Block a user