mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
10_ZWave.pm: Fix endpointChildren after rename (Forum #100207)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19518 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3ce54dde77
commit
ce960c2ce8
@ -711,6 +711,7 @@ ZWave_Initialize($)
|
|||||||
$hash->{UndefFn} = "ZWave_Undef";
|
$hash->{UndefFn} = "ZWave_Undef";
|
||||||
$hash->{AttrFn} = "ZWave_Attr";
|
$hash->{AttrFn} = "ZWave_Attr";
|
||||||
$hash->{ParseFn} = "ZWave_Parse";
|
$hash->{ParseFn} = "ZWave_Parse";
|
||||||
|
$hash->{RenameFn} = "ZWave_Rename";
|
||||||
no warnings 'qw';
|
no warnings 'qw';
|
||||||
my @attrList = qw(
|
my @attrList = qw(
|
||||||
IODev
|
IODev
|
||||||
@ -5024,6 +5025,13 @@ ZWave_Parse($$@)
|
|||||||
return $name;
|
return $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
sub
|
||||||
|
ZWave_Rename($$)
|
||||||
|
{
|
||||||
|
my ($old, $new) = @_;
|
||||||
|
ZWave_setEndpoints($defs{$new});
|
||||||
|
}
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
sub
|
sub
|
||||||
|
Loading…
x
Reference in New Issue
Block a user