Browse Source

Bug-Fix: modules.brightness_choose_n_action

tags/v1.0.0
Dirk Alders 1 year ago
parent
commit
99e3271ec4
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      function/modules.py

+ 2
- 1
function/modules.py View File

67
         if data is True:
67
         if data is True:
68
             self.set(self.KEY_ACTIVE_DEVICE, self.callback_device_list.index((device, key)))
68
             self.set(self.KEY_ACTIVE_DEVICE, self.callback_device_list.index((device, key)))
69
         else:
69
         else:
70
-            self.choose_next_device()
70
+            if self.callback_device_list[self[self.KEY_ACTIVE_DEVICE]][0] == device:
71
+                self.choose_next_device()
71
 
72
 
72
     def choose_prev_device(self, device=None, key=None, data=None):
73
     def choose_prev_device(self, device=None, key=None, data=None):
73
         if self[self.KEY_ACTIVE_DEVICE] is not None:
74
         if self[self.KEY_ACTIVE_DEVICE] is not None:

Loading…
Cancel
Save