2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 07:56:03 +00:00

59_Weather: change attribut

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

View File

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