Improvement: All off switches only active channels off

This commit is contained in:
Dirk Alders 2023-02-06 14:58:34 +01:00
parent 9e25a3bbb8
commit f73ad48ba7

View File

@ -372,7 +372,9 @@ class shelly(base):
if self.flash_active:
self.all_off_requested = True
else:
if self.output_0:
self.set_output_0(False)
if self.output_1:
self.set_output_1(False)
@ -418,6 +420,7 @@ class silvercrest_powerplug(base):
self.set_output_0('toggle')
def all_off(self):
if self.output_0:
self.set_output_0(False)
@ -661,6 +664,7 @@ class tradfri_light(base):
self.set_color_temp(data)
def all_off(self):
if self.output_0:
self.set_output_0(False)