59_Weather: change attribut

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18322 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
LeonGaultier 2019-01-18 19:22:54 +00:00
parent c53e971795
commit 4104e62030

View File

@ -137,7 +137,6 @@ sub Weather_Initialize($) {
$hash->{SetFn} = 'Weather_Set'; $hash->{SetFn} = 'Weather_Set';
$hash->{AttrList} = $hash->{AttrList} =
'disable:0,1 ' 'disable:0,1 '
. 'model '
. $readingFnAttributes; . $readingFnAttributes;
$hash->{NotifyFn}= 'Weather_Notify'; $hash->{NotifyFn}= 'Weather_Notify';
@ -439,8 +438,6 @@ sub Weather_Define($$) {
$hash->{READINGS}->{current_date_time}->{VAL}= "none"; $hash->{READINGS}->{current_date_time}->{VAL}= "none";
$hash->{fhem}->{allowCache}= 1; $hash->{fhem}->{allowCache}= 1;
CommandAttr(undef,$name . ' model ' . $api) if ( AttrVal($name,'model','none') ne $api );
readingsSingleUpdate($hash,'state','Initialized',1); readingsSingleUpdate($hash,'state','Initialized',1);
Weather_LanguageInitialize($hash->{LANG}); Weather_LanguageInitialize($hash->{LANG});