mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
10_MQTT2_DEVICE.pm: fixing delete and rename bugs (Forum #90145)
git-svn-id: https://svn.fhem.de/fhem/trunk@17122 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
158208ec60
commit
a11230ca2a
@ -305,7 +305,7 @@ MQTT2_DEVICE_Attr($$)
|
||||
sub
|
||||
MQTT2_DEVICE_delReading($)
|
||||
{
|
||||
my ($name) = $_;
|
||||
my ($name) = @_;
|
||||
my $dp = $modules{MQTT2_DEVICE}{defptr};
|
||||
foreach my $re (keys %{$dp}) {
|
||||
if($dp->{$re}{$name}) {
|
||||
@ -332,7 +332,7 @@ MQTT2_DEVICE_Rename($$)
|
||||
{
|
||||
my ($new, $old) = @_;
|
||||
MQTT2_DEVICE_delReading($old);
|
||||
MQTT2_DEVICE_addReading($new, AttrVal($old, "readingList", ""));
|
||||
MQTT2_DEVICE_addReading($new, AttrVal($new, "readingList", ""));
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user