mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add cast to state of Dyson Air Quality Sensor (#30100)
This commit is contained in:
parent
e3a3964911
commit
4c5801ee8c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user