[hue] Fixed setting wrong values for ledindocation configuration (#12182)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
Christoph Weitkamp 2022-02-01 08:42:17 +01:00 committed by GitHub
parent 5b1627c426
commit ca73548af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ public class LightLevelHandler extends HueSensorHandler {
}
if (sensor.getConfig().containsKey(CONFIG_LED_INDICATION)) {
config.put(CONFIG_LED_INDICATION, sensor.getConfig().get(CONFIG_LIGHT_LEVEL_THRESHOLD_DARK));
config.put(CONFIG_LED_INDICATION, sensor.getConfig().get(CONFIG_LED_INDICATION));
}
if (sensor.getConfig().containsKey(CONFIG_LIGHT_LEVEL_THRESHOLD_DARK)) {
config.put(CONFIG_LIGHT_LEVEL_THRESHOLD_DARK, sensor.getConfig().get(CONFIG_LIGHT_LEVEL_THRESHOLD_DARK));

View File

@ -63,7 +63,7 @@ public class TemperatureHandler extends HueSensorHandler {
}
if (sensor.getConfig().containsKey(CONFIG_LED_INDICATION)) {
config.put(CONFIG_LED_INDICATION, sensor.getConfig().get(CONFIG_LIGHT_LEVEL_THRESHOLD_DARK));
config.put(CONFIG_LED_INDICATION, sensor.getConfig().get(CONFIG_LED_INDICATION));
}
}
}