Skip to content

Commit d1fae5a

Browse files
Add ModbusIOException to detect extras
1 parent eff4b73 commit d1fae5a

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)