mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-25 03:39:21 +00:00
00_HMUARTLGW.pm: move Clients and MatchList from module to device-hash
The keepAlive-device should never be assigned as an IO, so put the related attributes only in the device-hash of real IOs and not the global hash of this module. git-svn-id: https://svn.fhem.de/fhem/trunk@15595 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8b8824cd54
commit
fc32a83abe
@ -149,11 +149,6 @@ sub HMUARTLGW_Initialize($)
|
||||
$hash->{RenameFn} = "HMUARTLGW_Rename";
|
||||
$hash->{ShutdownFn}= "HMUARTLGW_Shutdown";
|
||||
|
||||
|
||||
$hash->{Clients} = ":CUL_HM:";
|
||||
my %ml = ( "1:CUL_HM" => "^A......................" );
|
||||
$hash->{MatchList} = \%ml;
|
||||
|
||||
$hash->{AttrList}= "hmId " .
|
||||
"lgwPw " .
|
||||
"hmKey hmKey2 hmKey3 " .
|
||||
@ -277,6 +272,10 @@ sub HMUARTLGW_Define($$)
|
||||
|
||||
$hash->{DeviceName} = $dev;
|
||||
|
||||
$hash->{Clients} = ":CUL_HM:";
|
||||
my %ml = ( "1:CUL_HM" => "^A......................" );
|
||||
$hash->{MatchList} = \%ml;
|
||||
|
||||
if (defined(AttrVal($name, "dummy", undef))) {
|
||||
readingsSingleUpdate($hash, "state", "dummy", 1);
|
||||
HMUARTLGW_updateCondition($hash);
|
||||
|
Loading…
x
Reference in New Issue
Block a user