This commit is contained in:
parent
ffd1052bcf
commit
e9f0dd3f87
@ -31,12 +31,10 @@ class Yamaha:
|
||||
def available_senarios(self):
|
||||
return SENARIOS
|
||||
|
||||
@exception_handler
|
||||
def senario_activate(self, senario: Senario):
|
||||
for action in senario.activate:
|
||||
self.request(action)
|
||||
|
||||
@exception_handler
|
||||
def senario_deactivate(self, senario: Senario):
|
||||
for action in senario.deactivate:
|
||||
self.request(action)
|
||||
|
Loading…
x
Reference in New Issue
Block a user