diff --git a/solax/inverters/x1_g4_series.py b/solax/inverters/x1_g4_series.py index 62e6248..1e4f733 100644 --- a/solax/inverters/x1_g4_series.py +++ b/solax/inverters/x1_g4_series.py @@ -26,7 +26,13 @@ class X1G4Series(Inverter): ): str, vol.Required("ver"): str, vol.Required("data"): vol.Schema( - vol.All([vol.Coerce(float)], vol.Length(min=100, max=100)) + vol.All( + [vol.Coerce(float)], + vol.Any( + vol.Length(min=100, max=100), + vol.Length(min=300, max=300), + ), + ) ), vol.Required("information"): vol.Schema( vol.All(vol.Length(min=10, max=10))