SEA: again a fix - commits before damaged 'mf' of MA10

This commit is contained in:
zolliker 2025-06-03 11:43:43 +02:00
parent c0f6569f1b
commit 54c9fb9db9
2 changed files with 4 additions and 8 deletions

View File

@ -14,7 +14,7 @@ Mod('sea_main',
# io='sea_main',
# meaning=['temperature_regulation', 27],
# sea_object='tt',
# rel_paths=['.', 'tm', 'set', 'dblctrl'],
# rel_paths=['tm', '.', 'set', 'dblctrl'],
#)
Mod('tt',

View File

@ -557,16 +557,12 @@ class SeaModule(Module):
else:
cls.paramFilter(result, paramdesc)
cfgdict.pop('rel_paths', None)
# take top parameters - we do not want them first
top = result.pop('.', None)
params = []
for key, plist in result.items():
params.extend(plist) # the first value contains the main value
if top:
params.extend(top) # no we can add top parameters
top = None
params.extend(plist)
if is_running: # take this at end
params.append(is_running)
# this needs some care in the configuration: the main value must be the first!
main_value = params[0]
if issubclass(cls, Readable):
if 'key' in main_value:
@ -717,7 +713,7 @@ class SeaModule(Module):
@classmethod
def paramFilter(cls, result, paramdesc):
sub = paramdesc['path'].split('/', 1)
sublist = result.get(sub[0])
sublist = result.get(sub[0] or '.')
if sublist is None:
sublist = result.get('.')
if sublist is None: