From 78058c86c6d4a7b314a5bbadf906136899dc4d32 Mon Sep 17 00:00:00 2001 From: mgernoth Date: Tue, 12 Dec 2017 13:43:01 +0000 Subject: [PATCH] 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 --- fhem/FHEM/00_HMUARTLGW.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fhem/FHEM/00_HMUARTLGW.pm b/fhem/FHEM/00_HMUARTLGW.pm index f5191a19e..d990a8f7c 100644 --- a/fhem/FHEM/00_HMUARTLGW.pm +++ b/fhem/FHEM/00_HMUARTLGW.pm @@ -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);