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