Skip to content

Commit 12af21c

Browse files
Merge pull request #864 from WillCodeForCats/862-handle-canceled-futures-in-pymodbus-39
Handle canceled futures in pymodbus 3.9
2 parents 4f9d8c9 + c12955c commit 12af21c

File tree

1 file changed

+2
-2
lines changed
  • custom_components/solaredge_modbus_multi

1 file changed

+2
-2
lines changed

custom_components/solaredge_modbus_multi/hub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ async def read_modbus_data(self) -> None:
13221322
f"I{self.inverter_unit_id}: global power control NOT available"
13231323
)
13241324

1325-
except TimeoutError:
1325+
except (TimeoutError, ModbusIOException):
13261326
ir.async_create_issue(
13271327
self.hub._hass,
13281328
DOMAIN,
@@ -1564,7 +1564,7 @@ async def read_modbus_data(self) -> None:
15641564
)
15651565
)
15661566

1567-
except TimeoutError:
1567+
except (TimeoutError, ModbusIOException):
15681568
ir.async_create_issue(
15691569
self.hub._hass,
15701570
DOMAIN,

0 commit comments

Comments
 (0)