1786272757
This commit is contained in:
@@ -15,7 +15,7 @@ fn apply_state(app: &Weak<AppWindow>, state: State) {
|
|||||||
// Light/Dark mode
|
// Light/Dark mode
|
||||||
//
|
//
|
||||||
if let Some(illuminance) = state
|
if let Some(illuminance) = state
|
||||||
.get("sensor.living_room_motion_sensor_illuminance")
|
.get("sensor.diyless_thermostat_3_ambient_light_level")
|
||||||
.as_ref()
|
.as_ref()
|
||||||
&& let Ok(illuminance) = illuminance.state.parse::<i32>()
|
&& let Ok(illuminance) = illuminance.state.parse::<i32>()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user