瀏覽代碼

BugFix: All off functionality

tags/v1.3.0
Dirk Alders 1 年之前
父節點
當前提交
e565dd717b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      function/rooms.py

+ 1
- 1
function/rooms.py 查看文件

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

Loading…
取消
儲存