diff --git a/app/src/gen3/talent.py b/app/src/gen3/talent.py index be03df7..5c6a9be 100644 --- a/app/src/gen3/talent.py +++ b/app/src/gen3/talent.py @@ -141,8 +141,8 @@ class Talent(Message): def send_modbus_cb(self, modbus_pdu: bytearray, log_lvl: int, state: str): if self.state != self.STATE_UP: - logger.warn(f'[{self.node_id}] ignore MODBUS cmd,' - ' as the state is not UP') + logger.debug(f'[{self.node_id}] ignore MODBUS cmd,' + ' as the state is not UP') return self.__build_header(0x70, 0x77) @@ -158,8 +158,8 @@ class Talent(Message): async def send_modbus_cmd(self, func, addr, val, log_lvl) -> None: if self.state != self.STATE_UP: - logger.warn(f'[{self.node_id}] ignore MODBUS cmd,' - ' as the state is not UP') + logger.debug(f'[{self.node_id}] ignore MODBUS cmd,' + ' as the state is not UP') return self.mb.build_msg(Modbus.INV_ADDR, func, addr, val, log_lvl) diff --git a/app/src/gen3plus/solarman_v5.py b/app/src/gen3plus/solarman_v5.py index e823f57..c8e3aaa 100644 --- a/app/src/gen3plus/solarman_v5.py +++ b/app/src/gen3plus/solarman_v5.py @@ -339,8 +339,8 @@ class SolarmanV5(Message): def send_modbus_cb(self, pdu: bytearray, log_lvl: int, state: str): if self.state != self.STATE_UP: - logger.warn(f'[{self.node_id}] ignore MODBUS cmd,' - ' as the state is not UP') + logger.debug(f'[{self.node_id}] ignore MODBUS cmd,' + ' as the state is not UP') return self.__build_header(0x4510) self._send_buffer += struct.pack(' None: if self.state != self.STATE_UP: - logger.warn(f'[{self.node_id}] ignore MODBUS cmd,' - ' as the state is not UP') + logger.debug(f'[{self.node_id}] ignore MODBUS cmd,' + ' as the state is not UP') return self.mb.build_msg(Modbus.INV_ADDR, func, addr, val, log_lvl)