mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 01:24:29 +05:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
289f52ef73 | ||
|
|
ce589c97b9 | ||
|
|
22a6f8f444 |
@@ -100,7 +100,7 @@ class MegaView(HomeAssistantView):
|
||||
ret = 'd' if hub.force_d else ''
|
||||
if port is not None:
|
||||
if is_ext(data):
|
||||
ret = '' # пока ответ всегда пустой, неясно какая будет реакция на непустой ответ
|
||||
# ret = '' # пока ответ всегда пустой, неясно какая будет реакция на непустой ответ
|
||||
if port in hub.extenders:
|
||||
pt_orig = port
|
||||
else:
|
||||
@@ -128,7 +128,7 @@ class MegaView(HomeAssistantView):
|
||||
ret = template.async_render(_data)
|
||||
hub.lg.debug(f'response={ret}, template={template}')
|
||||
if ret == 'd' and act:
|
||||
await hub.request(cmd=act)
|
||||
await hub.request(cmd=act.replace(':3', f':{v}'))
|
||||
ret = 'd' if hub.force_d else ''
|
||||
else:
|
||||
hub.values[port] = data
|
||||
|
||||
Reference in New Issue
Block a user