Skip to content
Snippets Groups Projects
Commit 4c5801ee authored by springstan's avatar springstan Committed by Aaron Bach
Browse files

Add cast to state of Dyson Air Quality Sensor (#30100)

parent e3a39649
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment