74_AutomowerConnect.pm: correct merge of design attributes

git-svn-id: https://svn.fhem.de/fhem/trunk@28773 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Ellert
2024-04-08 21:37:26 +00:00
parent 6267c3b2c2
commit 04b888bc30
2 changed files with 3 additions and 3 deletions

View File

@@ -2777,7 +2777,7 @@ sub getDesignAttr {
my $hsh = '';
my $val = '';
my %desDef = map { ( $hsh, $val ) = $_ =~ /(.*)=(.*)/; $hsh => $val } @designDefault;
%desDef = map { ( $hsh, $val ) = $_ =~ /(.*)=(.*)/; $hsh => $val } @designAttr;
%desDef = ( %desDef, map { ( $hsh, $val ) = $_ =~ /(.*)=(.*)/; $hsh => $val } @designAttr );
my $desDef = \%desDef;
my @mergedDesign = map { "$_=$desDef->{$_}" } sort keys %desDef;
my $design = 'data-' . join( 'data-', @mergedDesign );