fix errors

This commit is contained in:
Andrey
2021-02-28 21:33:26 +03:00
parent 137eb8b6ba
commit 1042592a31

View File

@@ -121,6 +121,7 @@ class MegaView(HomeAssistantView):
for cb in self.callbacks[hub.id][pt]: for cb in self.callbacks[hub.id][pt]:
cb(_data) cb(_data)
act = hub.ext_act.get(pt) act = hub.ext_act.get(pt)
hub.lg.debug(f'act on port {pt}: {act}, all acts are: {hub.ext_act}')
template: Template = self.templates.get(hub.id, {}).get(port, hub.def_response) template: Template = self.templates.get(hub.id, {}).get(port, hub.def_response)
if template is not None: if template is not None:
template.hass = hass template.hass = hass