mirror of
https://github.com/suaveolent/hoymiles-wifi.git
synced 2024-09-19 19:00:17 +00:00
fix naming of 1000W
This commit is contained in:
parent
d89abb093b
commit
d7d9e4ed6c
@ -164,8 +164,10 @@ class DTU:
|
||||
"""Get historical power."""
|
||||
|
||||
request = AppGetHistPower_pb2.AppGetHistPowerResDTO()
|
||||
request.control_point = 0
|
||||
request.offset = OFFSET
|
||||
request.requested_time = int(time.time())
|
||||
request.requested_day = 0
|
||||
command = CMD_APP_GET_HIST_POWER_RES
|
||||
return await self.async_send_request(
|
||||
command,
|
||||
|
@ -34,7 +34,7 @@ class InverterPower(Enum):
|
||||
P_600_700_800 = "600/700/800"
|
||||
P_800W = "800W"
|
||||
P_1000 = "1000"
|
||||
P_10000W = "10000W"
|
||||
P_1000W = "1000W"
|
||||
P_1000_1200_1500 = "1000/1200/1500"
|
||||
P_1200_1500 = "1200/1500"
|
||||
P_1600 = "1600"
|
||||
@ -56,7 +56,7 @@ power_mapping = {
|
||||
0x1161: InverterPower.P_1000_1200_1500,
|
||||
0x1164: InverterPower.P_1600,
|
||||
0x141292: InverterPower.P_800W,
|
||||
0x141293: InverterPower.P_10000W,
|
||||
0x141293: InverterPower.P_1000W,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user