You've already forked STARK
mirror of
https://github.com/MarkParker5/STARK.git
synced 2025-07-02 22:36:54 +02:00
small fixes
This commit is contained in:
@ -60,7 +60,10 @@ class SmartHome(Command):
|
||||
print(json)
|
||||
# parsing of received data
|
||||
data = JSON.loads(json)
|
||||
if name := data.get('name'):
|
||||
if data.get('target') != 'hub':
|
||||
json = ''
|
||||
continue
|
||||
if name := data.get('command'):
|
||||
params = data.get('params') or {}
|
||||
if cmd := Command.getCommand(name):
|
||||
try: cmd.start(params)
|
||||
|
Reference in New Issue
Block a user