Bump sofar-modbus to 0.22.0 (#186153)

This commit is contained in:
darkrain-nl
2026-10-13 10:38:05 -04:00
committed by GitHub
parent 8faadd403a
commit 87a185fd15
5 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -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"]
}
+1 -1
View File
@@ -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
@@ -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',
+3 -3
View File
@@ -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")
+1 -1
View File
@@ -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,