SEA: do not override write_target method
else it will not wait for is_running + fix in playground
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user