This commit is contained in:
suaveolent 2024-02-13 08:03:48 +01:00
parent 10f1b19386
commit ba5ac3a7fe
2 changed files with 1 additions and 2 deletions

View File

@ -176,7 +176,6 @@ async def async_get_version_info(inverter):
inverter_hw_version="H" + generate_version_string(response.pv_info[0].pv_hw_version),
inverter_sw_version="V" + generate_sw_version_string(response.pv_info[0].pv_sw_version),
)
def print_invalid_command(command):
print(f"Invalid command: {command}")

View File

@ -77,7 +77,7 @@ class Inverter:
async def async_get_real_data(self) -> RealData_pb2.RealDataResDTO | None:
request = RealData_pb2.RealDataResDTO()
command = CMD_REAL_DATA_RES_DTO
return await self.async_.send_request(command, request, RealData_pb2.RealDataReqDTO)
return await self.async_send_request(command, request, RealData_pb2.RealDataReqDTO)
async def async_get_real_data_new(self) -> RealDataNew_pb2.RealDataNewResDTO | None:
request = RealDataNew_pb2.RealDataNewResDTO()