From e565dd717b258f9984f15c3088a32e1dca89bcc8 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Mon, 13 Nov 2023 20:46:52 +0100 Subject: [PATCH] BugFix: All off functionality --- function/rooms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function/rooms.py b/function/rooms.py index c4f0e28..f3d2469 100644 --- a/function/rooms.py +++ b/function/rooms.py @@ -22,7 +22,7 @@ class room(object): logger.info("Switching all off \"%s\"", type(self).__name__) for name, obj in inspect.getmembers(self): try: - if obj.__module__ == 'devices': + if obj.__module__.startswith('devices'): obj.all_off() except AttributeError: pass # not a module or has no method all_off