Compare commits

...

1 Commits

Author SHA1 Message Date
Andrey
ce589c97b9 fix errors 2021-02-28 22:22:17 +03:00

View File

@@ -127,6 +127,7 @@ class MegaView(HomeAssistantView):
template.hass = hass
ret = template.async_render(_data)
hub.lg.debug(f'response={ret}, template={template}')
ret = ret.replace(':3', f':{v}')
if ret == 'd' and act:
await hub.request(cmd=act)
ret = 'd' if hub.force_d else ''