fix missing sensor values for Point (#20937)
parent
d049b521b2
commit
5df02f3a78
|
@ -26,7 +26,7 @@ from .const import (
|
||||||
CONF_WEBHOOK_URL, DOMAIN, EVENT_RECEIVED, POINT_DISCOVERY_NEW,
|
CONF_WEBHOOK_URL, DOMAIN, EVENT_RECEIVED, POINT_DISCOVERY_NEW,
|
||||||
SCAN_INTERVAL, SIGNAL_UPDATE_ENTITY, SIGNAL_WEBHOOK)
|
SCAN_INTERVAL, SIGNAL_UPDATE_ENTITY, SIGNAL_WEBHOOK)
|
||||||
|
|
||||||
REQUIREMENTS = ['pypoint==1.0.6']
|
REQUIREMENTS = ['pypoint==1.0.7']
|
||||||
DEPENDENCIES = ['webhook']
|
DEPENDENCIES = ['webhook']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
|
@ -67,6 +67,8 @@ class MinutPointSensor(MinutPointEntity):
|
||||||
@property
|
@property
|
||||||
def state(self):
|
def state(self):
|
||||||
"""Return the state of the sensor."""
|
"""Return the state of the sensor."""
|
||||||
|
if self.value is None:
|
||||||
|
return None
|
||||||
return round(self.value, self._device_prop[1])
|
return round(self.value, self._device_prop[1])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -1192,7 +1192,7 @@ pypck==0.5.9
|
||||||
pypjlink2==1.2.0
|
pypjlink2==1.2.0
|
||||||
|
|
||||||
# homeassistant.components.point
|
# homeassistant.components.point
|
||||||
pypoint==1.0.6
|
pypoint==1.0.7
|
||||||
|
|
||||||
# homeassistant.components.sensor.pollen
|
# homeassistant.components.sensor.pollen
|
||||||
pypollencom==2.2.2
|
pypollencom==2.2.2
|
||||||
|
|
Loading…
Reference in New Issue