From 6d9bd93a6d4c3f9e554b1f479eadc8a038a900da Mon Sep 17 00:00:00 2001 From: Gwendal Raoul Date: Wed, 23 Aug 2023 15:58:06 +0200 Subject: [PATCH] Add missing otap info in setConfigResponse When adding support of extended status and config info with otap setConfigResponse was not extended. --- wirepas_mesh_messaging/set_config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wirepas_mesh_messaging/set_config.py b/wirepas_mesh_messaging/set_config.py index dfc7b26..81d29c9 100644 --- a/wirepas_mesh_messaging/set_config.py +++ b/wirepas_mesh_messaging/set_config.py @@ -18,6 +18,8 @@ set_config_rw, set_config_keys, parse_config_ro, + parse_config_otap, + set_config_otap, set_config_ro, ) from .wirepas_exceptions import GatewayAPIParsingException @@ -128,6 +130,7 @@ def from_payload(cls, payload): new_config["sink_id"] = response.config.sink_id parse_config_ro(response.config, new_config) parse_config_rw(response.config, new_config) + parse_config_otap(response.config, new_config) return cls(d["req_id"], d["gw_id"], d["res"], d["sink_id"], new_config, time_ms_epoch=d["time_ms_epoch"]) @@ -142,5 +145,6 @@ def payload(self): if self.config is not None: set_config_rw(response.config, self.config) set_config_ro(response.config, self.config) + set_config_otap(response.config, self.config) return message.SerializeToString()