From 3875533f9576ad3b1298254cb3575c7bd7ed26a7 Mon Sep 17 00:00:00 2001 From: Dos Moonen Date: Tue, 2 Apr 2024 23:16:39 +0200 Subject: [PATCH] Bump solax to 3.1.0 (#114617) 0.3.2 was succeeded by 0.3.4. 0.3.3 was yanked 0.3.4 was succeeded by 3.0.5. 3.0.5 is succeeded by 3.1.0. --- homeassistant/components/solax/manifest.json | 2 +- homeassistant/components/solax/sensor.py | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- tests/components/solax/test_config_flow.py | 6 +++++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/solax/manifest.json b/homeassistant/components/solax/manifest.json index d3f677fa894..be81dd65e89 100644 --- a/homeassistant/components/solax/manifest.json +++ b/homeassistant/components/solax/manifest.json @@ -6,5 +6,5 @@ "documentation": "https://www.home-assistant.io/integrations/solax", "iot_class": "local_polling", "loggers": ["solax"], - "requirements": ["solax==0.3.2"] + "requirements": ["solax==3.1.0"] } diff --git a/homeassistant/components/solax/sensor.py b/homeassistant/components/solax/sensor.py index ccd1a8c96c9..a8c09bdc880 100644 --- a/homeassistant/components/solax/sensor.py +++ b/homeassistant/components/solax/sensor.py @@ -6,7 +6,7 @@ import asyncio from datetime import timedelta from solax import RealTimeAPI -from solax.discovery import InverterError +from solax.inverter import InverterError from solax.units import Units from homeassistant.components.sensor import ( diff --git a/requirements_all.txt b/requirements_all.txt index 6b71c1e788d..8a35cd7a2ee 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2581,7 +2581,7 @@ solaredge-local==0.2.3 solaredge==0.0.2 # homeassistant.components.solax -solax==0.3.2 +solax==3.1.0 # homeassistant.components.somfy_mylink somfy-mylink-synergy==1.0.6 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 6ed14716033..903f14831b3 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1985,7 +1985,7 @@ soco==0.30.2 solaredge==0.0.2 # homeassistant.components.solax -solax==0.3.2 +solax==3.1.0 # homeassistant.components.somfy_mylink somfy-mylink-synergy==1.0.6 diff --git a/tests/components/solax/test_config_flow.py b/tests/components/solax/test_config_flow.py index c671fe39cec..61bd9003439 100644 --- a/tests/components/solax/test_config_flow.py +++ b/tests/components/solax/test_config_flow.py @@ -18,7 +18,11 @@ def __mock_real_time_api_success(): def __mock_get_data(): return InverterResponse( - data=None, serial_number="ABCDEFGHIJ", version="2.034.06", type=4 + data=None, + dongle_serial_number="ABCDEFGHIJ", + version="2.034.06", + type=4, + inverter_serial_number="XXXXXXX", )