mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 00:54:28 +05:00
fix errors
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user