Skip to content

Commit

Permalink
Support read_rsp from gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Oct 10, 2020
1 parent c1e78ca commit b73fd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_gateway3/gateway3.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def process_message(self, data: dict):
pkey = 'res_list'
elif data['cmd'] == 'report':
pkey = 'params' if 'params' in data else 'mi_spec'
elif data['cmd'] == 'write_rsp':
elif data['cmd'] in ('write_rsp', 'read_rsp'):
pkey = 'results'
else:
_LOGGER.warning(f"Unsupported cmd: {data}")
Expand Down

0 comments on commit b73fd84

Please sign in to comment.