diff --git a/homeassistant/components/sofar/manifest.json b/homeassistant/components/sofar/manifest.json index c7d54e29b94e..4c84ad36c214 100644 --- a/homeassistant/components/sofar/manifest.json +++ b/homeassistant/components/sofar/manifest.json @@ -9,5 +9,5 @@ "iot_class": "local_polling", "loggers": ["modbus_connection", "sofar_modbus", "tmodbus"], "quality_scale": "platinum", - "requirements": ["sofar-modbus==0.21.0"] + "requirements": ["sofar-modbus==0.22.0"] } diff --git a/requirements_all.txt b/requirements_all.txt index 1f0613233f2d..20bc40458099 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -3130,7 +3130,7 @@ snapcast==2.3.8 soco==0.31.5 # homeassistant.components.sofar -sofar-modbus==0.21.0 +sofar-modbus==0.22.0 # homeassistant.components.solaredge solaredge-web==0.5.0 diff --git a/tests/components/sofar/snapshots/test_diagnostics.ambr b/tests/components/sofar/snapshots/test_diagnostics.ambr index 299aa6217b7c..ec210ae7895c 100644 --- a/tests/components/sofar/snapshots/test_diagnostics.ambr +++ b/tests/components/sofar/snapshots/test_diagnostics.ambr @@ -22,12 +22,12 @@ 'inverter_type': 1537, 'link': dict({ 'stats': dict({ - 'answered': 43, + 'answered': 45, 'failures': dict({ }), 'median': float, 'p95': float, - 'requests': 43, + 'requests': 45, 'slowest': float, }), 'tuning': dict({ @@ -185,6 +185,7 @@ '1682': 0, '1683': 0, '1773': 0, + '4106': 0, '4131': 0, '4132': 0, '4356': 0, @@ -202,6 +203,7 @@ ]), 'serial_number': '**REDACTED**', 'settings_components': list([ + 'rtc_sync', 'feed_in', 'remote', 'active_power_control', diff --git a/tests/components/sofar/test_init.py b/tests/components/sofar/test_init.py index 42688cfbc2fd..eba30b676f3b 100644 --- a/tests/components/sofar/test_init.py +++ b/tests/components/sofar/test_init.py @@ -392,7 +392,7 @@ async def test_setup_takes_the_type_from_the_masks( await hass.async_block_till_done(wait_background_tasks=True) assert entry.state is ConfigEntryState.LOADED - assert len(hass.states.async_all()) == 36 + assert len(hass.states.async_all()) == 37 entity_id = entity_registry.async_get_entity_id( SENSOR_DOMAIN, DOMAIN, f"{MOCK_UNRECOGNIZED_SERIAL}_pv_power_1" ) @@ -433,7 +433,7 @@ async def test_setup_while_asleep_reloads_once_the_inverter_answers( assert mock_config_entry.state is ConfigEntryState.LOADED states = hass.states.async_all() - assert len(states) == 36 + assert len(states) == 37 assert {state.state for state in states} == {STATE_UNAVAILABLE} assert "inverter is not answering" in caplog.text @@ -480,7 +480,7 @@ async def test_setup_takes_the_type_once_the_masks_answer( await hass.async_block_till_done(wait_background_tasks=True) assert entry.state is ConfigEntryState.LOADED - assert len(hass.states.async_all()) == 36 + assert len(hass.states.async_all()) == 37 @pytest.mark.usefixtures("mock_get_unit") diff --git a/tests/components/sofar/test_sensor.py b/tests/components/sofar/test_sensor.py index 3e61b7c752e4..64dddf701ad3 100644 --- a/tests/components/sofar/test_sensor.py +++ b/tests/components/sofar/test_sensor.py @@ -104,7 +104,7 @@ async def test_sensor_entities_created_and_state( @pytest.mark.parametrize( ("serial", "model", "seed", "created", "enabled"), [ - pytest.param(MOCK_SERIAL, MOCK_MODEL, seed_pv_inverter, 74, 21, id="pv"), + pytest.param(MOCK_SERIAL, MOCK_MODEL, seed_pv_inverter, 75, 22, id="pv"), pytest.param( MOCK_HYBRID_SERIAL, MOCK_HYBRID_MODEL,