diff --git a/frappy/playground.py b/frappy/playground.py index 8cb18c4..06949d0 100644 --- a/frappy/playground.py +++ b/frappy/playground.py @@ -94,6 +94,7 @@ logger = MainLogger() class Playground(Server): def __init__(self, **kwds): # pylint: disable=super-init-not-called + self.name = 'playground' for modname, cfg in kwds.items(): cfg.setdefault('description', modname) self.log = logger.log diff --git a/frappy_psi/sea.py b/frappy_psi/sea.py index cc601c8..e2e7fae 100644 --- a/frappy_psi/sea.py +++ b/frappy_psi/sea.py @@ -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)