Skip to content

Commit

Permalink
Workaround for errors which have probably been there since forever?
Browse files Browse the repository at this point in the history
  • Loading branch information
optiluca committed Dec 19, 2022
1 parent 37e64ba commit 465ffbc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/comelit/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ def dispatch(self, payload):
RequestType.STATUS: self.status,
RequestType.PARAMETERS: self.parse_parameters,
}
options[req_type](payload)

# I'm not 100% sure what these do, and I'm not sure why I wasn't seeing errors before.
if req_type in options:
options[req_type](payload)
except Exception as e:
_LOGGER.error(f"Error dispatching {payload}")
_LOGGER.error(e)
Expand Down

0 comments on commit 465ffbc

Please sign in to comment.