From 0af2d596fc0cd5fc575b718c65a0e8f18868a12c Mon Sep 17 00:00:00 2001 From: wills106 Date: Wed, 13 Nov 2024 17:49:23 +0000 Subject: [PATCH] Update plugin_solax.py Change 'PRI' to GEN3 --- custom_components/solax_modbus/plugin_solax.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/solax_modbus/plugin_solax.py b/custom_components/solax_modbus/plugin_solax.py index af26ae36..b0e30ea3 100644 --- a/custom_components/solax_modbus/plugin_solax.py +++ b/custom_components/solax_modbus/plugin_solax.py @@ -7506,6 +7506,9 @@ async def async_determineInverterType(self, hub, configdict): elif seriesnumber.startswith('XAC'): invertertype = AC | GEN3 | X1 # X1AC self.inverter_model = "X1-AC" + elif seriesnumber.startswith('PRI'): + invertertype = AC | GEN3 | X1 # RetroFit + self.inverter_model = "X1-RetroFit" elif seriesnumber.startswith('H3DE'): invertertype = HYBRID | GEN3 | X3 # Gen3 X3 self.inverter_model = f"X3-Hybrid-{seriesnumber[3:5]}kW" @@ -7557,9 +7560,6 @@ async def async_determineInverterType(self, hub, configdict): elif seriesnumber.startswith('PRE'): invertertype = AC | GEN4 | X1 # RetroFit self.inverter_model = "X1-RetroFit" - elif seriesnumber.startswith('PRI'): - invertertype = AC | GEN4 | X1 # RetroFit - self.inverter_model = "X1-RetroFit" elif seriesnumber.startswith('H55'): invertertype = HYBRID | GEN5 | X1 | MPPT3 # X1-IES 5kW? self.inverter_model = f"X1-IES-{seriesnumber[2:3]}.{seriesnumber[3:4]}kW"