@@ -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