mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-10 16:44:28 +05:00
fix errors
This commit is contained in:
@@ -127,9 +127,8 @@ class MegaView(HomeAssistantView):
|
|||||||
template.hass = hass
|
template.hass = hass
|
||||||
ret = template.async_render(_data)
|
ret = template.async_render(_data)
|
||||||
hub.lg.debug(f'response={ret}, template={template}')
|
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.replace(':3', f':{v}'))
|
||||||
ret = 'd' if hub.force_d else ''
|
ret = 'd' if hub.force_d else ''
|
||||||
else:
|
else:
|
||||||
hub.values[port] = data
|
hub.values[port] = data
|
||||||
|
|||||||
Reference in New Issue
Block a user