mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 06:36:04 +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:
parent
d90ee524ac
commit
d742274751
@ -423,7 +423,6 @@ MQTT2_DEVICE_Set($@)
|
|||||||
readingsSingleUpdate($hash, "state", "set_$cmdSE", 1);
|
readingsSingleUpdate($hash, "state", "set_$cmdSE", 1);
|
||||||
delete($hash->{skipStateFormat});
|
delete($hash->{skipStateFormat});
|
||||||
} else {
|
} else {
|
||||||
shift(@a);
|
|
||||||
unshift(@a, "set");
|
unshift(@a, "set");
|
||||||
readingsSingleUpdate($hash, $cmdName, join(" ",@a), 1);
|
readingsSingleUpdate($hash, $cmdName, join(" ",@a), 1);
|
||||||
}
|
}
|
||||||
@ -457,7 +456,7 @@ MQTT2_DEVICE_Attr($$)
|
|||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($attrName =~ m/(.*)List/) {
|
if($attrName =~ m/^(get|set|reading)List/) {
|
||||||
my $atype = $1;
|
my $atype = $1;
|
||||||
if($type eq "del") {
|
if($type eq "del") {
|
||||||
MQTT2_DEVICE_delReading($dev) if($atype eq "reading");
|
MQTT2_DEVICE_delReading($dev) if($atype eq "reading");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user