BugFix: All off functionality
This commit is contained in:
parent
bc445a6ec4
commit
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user