File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ def on_deactivate(self):
28
28
self .client = None
29
29
30
30
def _handle_error (self , action ):
31
- error_code = self .client .last_error ()
31
+ error_code = self .client .last_error
32
32
if error_code == self ._consts .MB_EXCEPT_ERR :
33
- exc = self .client .last_except ()
33
+ exc = self .client .last_except
34
34
if exc not in [self ._consts .EXP_ACKNOWLEDGE , self ._consts .EXP_NONE ]:
35
35
raise ExecutionError (
36
36
f'Could not { action } coil (code={ error_code } /exception={ exc } )' )
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ doc = [
58
58
docker = [" docker>=5.0.2" ]
59
59
graph = [" graphviz>=0.17.0" ]
60
60
kasa = [" python-kasa>=0.4.0" ]
61
- modbus = [" pyModbusTCP>=0.1.10 " ]
61
+ modbus = [" pyModbusTCP>=0.2.0 " ]
62
62
modbusrtu = [" minimalmodbus>=1.0.2" ]
63
63
mqtt = [" paho-mqtt>=1.5.1" ]
64
64
onewire = [" onewire>=0.2" ]
You can’t perform that action at this time.
0 commit comments