From 331b0b04326658d5acb887f25a9a4b3f6b7d14da Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 2 Jul 2020 18:02:32 +0200 Subject: [PATCH] fix ascAPIset with value 0 bug --- controls_AutoShuttersControl.txt | 8 ++++---- lib/FHEM/Automation/ShuttersControl.pm | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/controls_AutoShuttersControl.txt b/controls_AutoShuttersControl.txt index 425c3ba..ddfdff1 100644 --- a/controls_AutoShuttersControl.txt +++ b/controls_AutoShuttersControl.txt @@ -1,8 +1,8 @@ -UPD 2020-07-02_12:28:09 96885 FHEM/73_AutoShuttersControl.pm -UPD 2020-06-30_12:47:15 188585 lib/FHEM/Automation/ShuttersControl.pm +UPD 2020-07-02_14:58:15 96885 FHEM/73_AutoShuttersControl.pm +UPD 2020-07-02_18:02:10 188567 lib/FHEM/Automation/ShuttersControl.pm UPD 2020-06-22_09:41:40 2657 lib/FHEM/Automation/ShuttersControl/Dev.pm -UPD 2020-06-22_09:41:40 2493 lib/FHEM/Automation/ShuttersControl/Roommate.pm -UPD 2020-06-30_12:47:15 30157 lib/FHEM/Automation/ShuttersControl/Shutters.pm +UPD 2020-07-02_14:58:15 2493 lib/FHEM/Automation/ShuttersControl/Roommate.pm +UPD 2020-07-02_14:47:17 30157 lib/FHEM/Automation/ShuttersControl/Shutters.pm UPD 2020-06-22_09:41:40 2175 lib/FHEM/Automation/ShuttersControl/Window.pm UPD 2020-06-22_09:41:40 11454 lib/FHEM/Automation/ShuttersControl/Dev/Attr.pm UPD 2020-06-22_09:41:40 7251 lib/FHEM/Automation/ShuttersControl/Dev/Readings.pm diff --git a/lib/FHEM/Automation/ShuttersControl.pm b/lib/FHEM/Automation/ShuttersControl.pm index 78818a6..e5de277 100644 --- a/lib/FHEM/Automation/ShuttersControl.pm +++ b/lib/FHEM/Automation/ShuttersControl.pm @@ -317,8 +317,7 @@ sub ascAPIset { if ( defined($shutterDev) && $shutterDev - && defined($value) - && $value ) + && defined($value) ) { $shutters->setShuttersDev($shutterDev); $shutters->$setter($value);