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 | |
|---|---|---|---|
|
|
ce589c97b9 | ||
|
|
22a6f8f444 | ||
|
|
9a53de1d5d |
@@ -100,7 +100,7 @@ class MegaView(HomeAssistantView):
|
|||||||
ret = 'd' if hub.force_d else ''
|
ret = 'd' if hub.force_d else ''
|
||||||
if port is not None:
|
if port is not None:
|
||||||
if is_ext(data):
|
if is_ext(data):
|
||||||
ret = '' # пока ответ всегда пустой, неясно какая будет реакция на непустой ответ
|
# ret = '' # пока ответ всегда пустой, неясно какая будет реакция на непустой ответ
|
||||||
if port in hub.extenders:
|
if port in hub.extenders:
|
||||||
pt_orig = port
|
pt_orig = port
|
||||||
else:
|
else:
|
||||||
@@ -126,6 +126,8 @@ class MegaView(HomeAssistantView):
|
|||||||
if template is not None:
|
if template is not None:
|
||||||
template.hass = hass
|
template.hass = hass
|
||||||
ret = template.async_render(_data)
|
ret = template.async_render(_data)
|
||||||
|
hub.lg.debug(f'response={ret}, template={template}')
|
||||||
|
ret = ret.replace(':3', f':{v}')
|
||||||
if ret == 'd' and act:
|
if ret == 'd' and act:
|
||||||
await hub.request(cmd=act)
|
await hub.request(cmd=act)
|
||||||
ret = 'd' if hub.force_d else ''
|
ret = 'd' if hub.force_d else ''
|
||||||
|
|||||||
Reference in New Issue
Block a user