fix missing sensor values for Point (#20937)

pull/20951/head
Fredrik Erlandsson 2019-02-10 21:48:33 +01:00 committed by Fabian Affolter
parent d049b521b2
commit 5df02f3a78
3 changed files with 4 additions and 2 deletions

View File

@ -26,7 +26,7 @@ from .const import (
CONF_WEBHOOK_URL, DOMAIN, EVENT_RECEIVED, POINT_DISCOVERY_NEW,
SCAN_INTERVAL, SIGNAL_UPDATE_ENTITY, SIGNAL_WEBHOOK)
REQUIREMENTS = ['pypoint==1.0.6']
REQUIREMENTS = ['pypoint==1.0.7']
DEPENDENCIES = ['webhook']
_LOGGER = logging.getLogger(__name__)

View File

@ -67,6 +67,8 @@ class MinutPointSensor(MinutPointEntity):
@property
def state(self):
"""Return the state of the sensor."""
if self.value is None:
return None
return round(self.value, self._device_prop[1])
@property

View File

@ -1192,7 +1192,7 @@ pypck==0.5.9
pypjlink2==1.2.0
# homeassistant.components.point
pypoint==1.0.6
pypoint==1.0.7
# homeassistant.components.sensor.pollen
pypollencom==2.2.2