BugFix: All off functionality

このコミットが含まれているのは:
Dirk Alders 2023-11-13 20:46:52 +01:00
コミット e565dd717b

ファイルの表示

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