add a delimiter end of request string in _set_rt

fixes bug if more than a single command in request packet.

removed [{self.index}] from apply string. (duplicates)
This commit is contained in:
onyx-and-iris
2022-10-19 14:20:23 +01:00
parent 197f81aa73
commit ee3a871d23
4 changed files with 24 additions and 19 deletions

View File

@@ -10,6 +10,8 @@ def cache_bool(func, param):
cmd = f"{self.identifier}.{param}"
if cmd in self._remote.cache:
return self._remote.cache.pop(cmd) == 1
if self._remote.sync:
self._remote.clear_dirty()
return func(*args, **kwargs)
return wrapper
@@ -23,6 +25,8 @@ def cache_string(func, param):
cmd = f"{self.identifier}.{param}"
if cmd in self._remote.cache:
return self._remote.cache.pop(cmd)
if self._remote.sync:
self._remote.clear_dirty()
return func(*args, **kwargs)
return wrapper