We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c593345 + 859284c commit 37f5cc5Copy full SHA for 37f5cc5
custom_components/adaptive_cover/calculation.py
@@ -290,7 +290,7 @@ def lux(self) -> bool:
290
return False
291
if self.lux_entity is not None and self.lux_threshold is not None:
292
value = get_safe_state(self.hass, self.lux_entity)
293
- return value <= self.lux_threshold
+ return float(value) <= self.lux_threshold
294
295
296
@property
@@ -300,7 +300,7 @@ def irradiance(self) -> bool:
300
301
if self.irradiance_entity is not None and self.irradiance_threshold is not None:
302
value = get_safe_state(self.hass, self.irradiance_entity)
303
- return value <= self.irradiance_threshold
+ return float(value) <= self.irradiance_threshold
304
305
306
0 commit comments