fix Typo in package name

This commit is contained in:
Marko Oldenburg 2021-03-27 18:15:42 +01:00
parent f44373f611
commit 4f6a361c80
3 changed files with 16 additions and 15 deletions

View File

@ -84,20 +84,21 @@ sub Initialize {
my $hash = shift; my $hash = shift;
$hash->{GetFn} = 'FHEM::Tesla::Poerwall::Get'; $hash->{GetFn} = 'FHEM::Tesla::Powerwall::Get';
$hash->{SetFn} = 'FHEM::Tesla::Poerwall::Set'; $hash->{SetFn} = 'FHEM::Tesla::Powerwall::Set';
$hash->{DefFn} = 'FHEM::Tesla::Poerwall::Define'; $hash->{DefFn} = 'FHEM::Tesla::Powerwall::Define';
$hash->{UndefFn} = 'FHEM::Tesla::Poerwall::Undef'; $hash->{UndefFn} = 'FHEM::Tesla::Powerwall::Undef';
$hash->{NotifyFn} = 'FHEM::Tesla::Poerwall::Notify'; $hash->{NotifyFn} = 'FHEM::Tesla::Powerwall::Notify';
$hash->{RenameFn} = 'FHEM::Tesla::Poerwall::Rename'; $hash->{RenameFn} = 'FHEM::Tesla::Powerwall::Rename';
$hash->{AttrFn} = 'FHEM::Tesla::Poerwall::Attr'; $hash->{AttrFn} = 'FHEM::Tesla::Powerwall::Attr';
$hash->{AttrList} = $hash->{AttrList} =
'interval ' 'interval '
. 'disable:1 ' . 'disable:1 '
. 'devel:1 ' . 'devel:1 '
. 'emailaddr ' . 'emailaddr '
. $readingFnAttributes; . $readingFnAttributes;
$hash->{parseParams} = 1; $hash->{parseParams} = 1;
return FHEM::Meta::InitMod( __FILE__, $hash ); return FHEM::Meta::InitMod( __FILE__, $hash );

View File

@ -1,2 +1,2 @@
UPD 2021-03-27_15:47:11 6982 FHEM/46_TeslaPowerwall2AC.pm UPD 2021-03-27_18:14:46 6992 FHEM/46_TeslaPowerwall2AC.pm
UPD 2021-03-27_16:41:12 28868 lib/FHEM/Tesla/Powerwall.pm UPD 2021-03-27_18:15:26 28873 lib/FHEM/Tesla/Powerwall.pm

View File

@ -52,7 +52,7 @@
## ##
## ##
package FHEM::Tesla::Poerwall; package FHEM::Tesla::Powerwall;
use strict; use strict;
use warnings; use warnings;
@ -165,9 +165,9 @@ BEGIN {
#-- Export to main context with different name #-- Export to main context with different name
GP_Export( GP_Export(
qw( qw(
Initialize Initialize
Timer_GetData Timer_GetData
Write Write
) )
); );
@ -455,7 +455,7 @@ sub Timer_GetData {
} }
InternalTimer( gettimeofday() + $hash->{INTERVAL}, InternalTimer( gettimeofday() + $hash->{INTERVAL},
'TeslaPowerwall2AC_Timer_GetData', $hash ); 'Tesla_Powerwall_Timer_GetData', $hash );
Log3($name, 4, Log3($name, 4,
qq(TeslaPowerwall2AC \(${name}\) - Call InternalTimer Timer_GetData)); qq(TeslaPowerwall2AC \(${name}\) - Call InternalTimer Timer_GetData));
} }