diff --git a/custom_components/gree/climate.py b/custom_components/gree/climate.py index 539373e..fa0e397 100644 --- a/custom_components/gree/climate.py +++ b/custom_components/gree/climate.py @@ -511,7 +511,7 @@ async def SyncState(self, acOptions={}): except Exception: _LOGGER.debug("Could not determine whether device has a built-in light sensor. Retrying at next update()") else: - if light_sensor: + if light_sensor is not None: self._has_light_sensor = True self._acOptions.update({"LigSen": None}) self._optionsToFetch.append("LigSen")