remove attribut mode
This commit is contained in:
		| @@ -135,9 +135,8 @@ sub Weather_Initialize($) { | |||||||
|     $hash->{UndefFn}    = 'Weather_Undef'; |     $hash->{UndefFn}    = 'Weather_Undef'; | ||||||
|     $hash->{GetFn}      = 'Weather_Get'; |     $hash->{GetFn}      = 'Weather_Get'; | ||||||
|     $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}); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user