mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
c53e971795
commit
4104e62030
@ -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});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user