mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Add cast to state of Dyson Air Quality Sensor (#30100)
This commit is contained in:
@@ -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