File tree Expand file tree Collapse file tree 2 files changed +10
-18
lines changed
custom_components/solaredge_modbus_multi Expand file tree Collapse file tree 2 files changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -1700,28 +1700,20 @@ async def read_modbus_data(self) -> None:
1700
1700
)
1701
1701
self ._grid_status = True
1702
1702
1703
- except (ModbusIllegalAddress , ModbusIOException ) as e :
1704
-
1705
- if (
1706
- type (e ) is ModbusIOException
1707
- and "No response recieved after" not in e
1708
- ):
1709
- raise
1710
-
1711
- try :
1712
- del self .decoded_model ["I_Grid_Status" ]
1713
- except KeyError :
1714
- pass
1715
-
1703
+ except ModbusIllegalAddress :
1716
1704
self ._grid_status = False
1717
-
1718
- _LOGGER .debug (
1719
- (f"I{ self .inverter_unit_id } : Grid On/Off NOT available: { e } " )
1720
- )
1705
+ _LOGGER .debug ((f"I{ self .inverter_unit_id } : Grid On/Off NOT available" ))
1721
1706
1722
1707
if not self .hub .is_connected :
1723
1708
await self .hub .connect ()
1724
1709
1710
+ except ModbusIOException as e :
1711
+ _LOGGER .debug (
1712
+ f"I{ self .inverter_unit_id } : A modbus I/O exception occurred "
1713
+ "while reading data for Grid On/Off Status. This entity "
1714
+ f"will be unavailable: { e } "
1715
+ )
1716
+
1725
1717
except ModbusIOError :
1726
1718
raise ModbusReadError (
1727
1719
f"No response from inverter ID { self .inverter_unit_id } "
Original file line number Diff line number Diff line change 10
10
"issue_tracker" : " https://github.com/WillCodeForCats/solaredge-modbus-multi/issues" ,
11
11
"loggers" : [" custom_components.solaredge_modbus_multi" ],
12
12
"requirements" : [" pymodbus>=3.8.3" ],
13
- "version" : " 3.1.3 "
13
+ "version" : " 3.1.4-pre.1 "
14
14
}
You can’t perform that action at this time.
0 commit comments