code style
This commit is contained in:
parent
9366939b23
commit
d6254e937b
@ -170,13 +170,13 @@ GP_Export(
|
|||||||
);
|
);
|
||||||
|
|
||||||
my %paths = (
|
my %paths = (
|
||||||
'statussoe' => 'system_status/soe',
|
'statussoe' => 'system_status/soe',
|
||||||
'aggregates' => 'meters/aggregates',
|
'aggregates' => 'meters/aggregates',
|
||||||
'meterssite' => 'meters/site',
|
'meterssite' => 'meters/site',
|
||||||
'meterssolar' => 'meters/solar',
|
'meterssolar' => 'meters/solar',
|
||||||
'siteinfo' => 'site_info',
|
'siteinfo' => 'site_info',
|
||||||
'sitename' => 'site_info/site_name',
|
'sitename' => 'site_info/site_name',
|
||||||
'sitemaster' => 'sitemaster',
|
'sitemaster' => 'sitemaster',
|
||||||
'powerwalls' => 'powerwalls',
|
'powerwalls' => 'powerwalls',
|
||||||
'registration' => 'customer/registration',
|
'registration' => 'customer/registration',
|
||||||
'status' => 'status',
|
'status' => 'status',
|
||||||
@ -407,7 +407,6 @@ sub Timer_GetData($) {
|
|||||||
my $hash = shift;
|
my $hash = shift;
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
|
|
||||||
|
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
|
|
||||||
if ( defined( $hash->{actionQueue} )
|
if ( defined( $hash->{actionQueue} )
|
||||||
@ -796,8 +795,8 @@ sub CreateUri($$) {
|
|||||||
my $header;
|
my $header;
|
||||||
my $data;
|
my $data;
|
||||||
|
|
||||||
if ( $path eq 'powerwallsstop'
|
if ( $path eq 'powerwallsstop'
|
||||||
or $path eq 'powerwallsruns' )
|
or $path eq 'powerwallsruns' )
|
||||||
{
|
{
|
||||||
$uri = $host . '/api/' . $cmdPaths{$path};
|
$uri = $host . '/api/' . $cmdPaths{$path};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user