SEA: do not override write_target method

else it will not wait for is_running

+ fix in playground
This commit is contained in:
2025-06-05 11:50:56 +02:00
parent 1ad699fb66
commit 97140aa3b4
2 changed files with 6 additions and 2 deletions

View File

@ -213,7 +213,10 @@ class SeaClient(ProxyClient, Module):
if not self._connected.is_set():
if self._connect_thread is None:
# let doPoll do the reconnect
self.pollInfo.trigger(True)
if self.pollInfo: # is None in playground
self.pollInfo.trigger(True)
else:
self.log.info('sea_main.doPoll() will connect')
raise ConnectionClosed('disconnected - reconnect is tried later')
return self.raw_request(command, quiet)
@ -677,7 +680,7 @@ class SeaModule(Module):
if key != 'status' and key is not None:
attributes['read_' + key] = rfunc
if not readonly:
if not readonly and key:
def wfunc(self, value, datatype=datatype, command=paramdesc['cmd']):
value = datatype.export_value(value)