Add cast to state of Dyson Air Quality Sensor (#30100)
This commit is contained in:
1 parent
e3a3964911
commit
4c5801ee8c
1 file changed
+1
-1
@@ -195,5 +195,5 @@ class DysonAirQualitySensor(DysonSensor):
|
||||
def state(self):
|
||||
"""Return Air Quality value."""
|
||||
if self._device.environmental_state:
|
||||
return self._device.environmental_state.volatil_organic_compounds
|
||||
return int(self._device.environmental_state.volatil_organic_compounds)
|
||||
return None
|
||||
Reference in new issue
Block a user