mirror of
https://github.com/home-assistant/core.git
synced 2026-10-06 14:29:21 -04:00
Bump sofar-modbus to 0.16.0 (#183261)
This commit is contained in:
@@ -48,7 +48,7 @@ async def _async_probe(
|
||||
"""Connect to the inverter and read its identity, or raise."""
|
||||
params = ModbusTcpParams(host=host, port=port)
|
||||
async with async_get_temporary_unit(hass, params, unit_id) as unit:
|
||||
device = SofarInverter(unit)
|
||||
device = await SofarInverter.async_detect(unit)
|
||||
await device.async_update()
|
||||
return device
|
||||
|
||||
|
||||
@@ -9,5 +9,5 @@
|
||||
"iot_class": "local_polling",
|
||||
"loggers": ["modbus_connection", "sofar_modbus", "tmodbus"],
|
||||
"quality_scale": "platinum",
|
||||
"requirements": ["sofar-modbus==0.15.1"]
|
||||
"requirements": ["sofar-modbus==0.16.0"]
|
||||
}
|
||||
|
||||
Generated
+1
-1
@@ -3129,7 +3129,7 @@ snapcast==2.3.8
|
||||
soco==0.31.2
|
||||
|
||||
# homeassistant.components.sofar
|
||||
sofar-modbus==0.15.1
|
||||
sofar-modbus==0.16.0
|
||||
|
||||
# homeassistant.components.solaredge_local
|
||||
solaredge-local==0.2.3
|
||||
|
||||
@@ -69,7 +69,9 @@ async def test_all_entities(
|
||||
|
||||
def test_sensor_description_components_are_real() -> None:
|
||||
"""Guards SENSOR_DESCRIPTIONS against a component/key transcription slip."""
|
||||
inverter = SofarInverter(MockModbusConnection().for_unit(1))
|
||||
inverter = SofarInverter(
|
||||
MockModbusConnection().for_unit(1), serial_number="SP1ES12345678"
|
||||
)
|
||||
for description in SENSOR_DESCRIPTIONS:
|
||||
component = getattr(inverter, description.component, None)
|
||||
assert component is not None, f"unknown component {description.component!r}"
|
||||
|
||||
Reference in New Issue
Block a user