2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 04:36:02 +00:00

10_MQTT2_DEVICE.pm: fix the setStateList attribute (Forum #133750)

git-svn-id: https://svn.fhem.de/fhem/trunk@27624 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2023-05-28 12:49:33 +00:00
parent d90ee524ac
commit d742274751

View File

@ -423,7 +423,6 @@ MQTT2_DEVICE_Set($@)
readingsSingleUpdate($hash, "state", "set_$cmdSE", 1);
delete($hash->{skipStateFormat});
} else {
shift(@a);
unshift(@a, "set");
readingsSingleUpdate($hash, $cmdName, join(" ",@a), 1);
}
@ -457,7 +456,7 @@ MQTT2_DEVICE_Attr($$)
return undef;
}
if($attrName =~ m/(.*)List/) {
if($attrName =~ m/^(get|set|reading)List/) {
my $atype = $1;
if($type eq "del") {
MQTT2_DEVICE_delReading($dev) if($atype eq "reading");