sort devices if sortDevices attribute is changed

git-svn-id: https://svn.fhem.de/fhem/trunk@5868 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-05-15 17:02:04 +00:00
parent 1feb574aaf
commit 080c7aaca6

View File

@@ -890,6 +890,16 @@ readingsGroup_Attr($$$)
} else {
delete $hash->{alwaysTrigger};
}
} elsif( $attrName eq "sortDevices" ) {
if( $cmd eq "set" ) {
$attrVal = 1 if($attrVal);
$attr{$name}{$attrName} = $attrVal;
} else {
delete $attr{$name}{$attrName};
}
my $hash = $defs{$name};
readingsGroup_updateDevices($hash);
}
if( $cmd eq "set" ) {