Browse Source

BugFix: All off functionality

tags/v1.3.0
Dirk Alders 1 year ago
parent
commit
e565dd717b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      function/rooms.py

+ 1
- 1
function/rooms.py View File

22
         logger.info("Switching all off \"%s\"", type(self).__name__)
22
         logger.info("Switching all off \"%s\"", type(self).__name__)
23
         for name, obj in inspect.getmembers(self):
23
         for name, obj in inspect.getmembers(self):
24
             try:
24
             try:
25
-                if obj.__module__ == 'devices':
25
+                if obj.__module__.startswith('devices'):
26
                     obj.all_off()
26
                     obj.all_off()
27
             except AttributeError:
27
             except AttributeError:
28
                 pass    # not a module or has no method all_off
28
                 pass    # not a module or has no method all_off

Loading…
Cancel
Save