change codestyle
This commit is contained in:
@ -357,7 +357,7 @@ sub Attr(@) {
|
|||||||
"AMADDevice ($name) - set remoteServer to other" );
|
"AMADDevice ($name) - set remoteServer to other" );
|
||||||
}
|
}
|
||||||
|
|
||||||
$hash->{MODEL} = $attrVal;
|
$hash->{MODEL} = $attrVal;
|
||||||
$hash->{DEF} =
|
$hash->{DEF} =
|
||||||
$hash->{HOST} . ' ' . $hash->{AMAD_ID} . ' ' . $attrVal;
|
$hash->{HOST} . ' ' . $hash->{AMAD_ID} . ' ' . $attrVal;
|
||||||
}
|
}
|
||||||
@ -512,7 +512,8 @@ sub GetUpdate($) {
|
|||||||
elsif ( AttrVal( $bname, 'fhemServerIP', 'not set' ) ne 'not set' ) {
|
elsif ( AttrVal( $bname, 'fhemServerIP', 'not set' ) ne 'not set' ) {
|
||||||
|
|
||||||
Log3( $name, 1,
|
Log3( $name, 1,
|
||||||
"AMADDevice ($name) - GetUpdate, attribut fhemServerIP not set in bridge device" );
|
"AMADDevice ($name) - GetUpdate, attribut fhemServerIP not set in bridge device"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
@ -788,7 +789,7 @@ sub Set($$@) {
|
|||||||
my $openurl = join( ' ', @args );
|
my $openurl = join( ' ', @args );
|
||||||
my $browser = AttrVal( $name, 'setOpenUrlBrowser',
|
my $browser = AttrVal( $name, 'setOpenUrlBrowser',
|
||||||
'com.android.chrome|com.google.android.apps.chrome.Main' );
|
'com.android.chrome|com.google.android.apps.chrome.Main' );
|
||||||
my ($bapp,$bappclass) = split( /\|/, $browser );
|
my ( $bapp, $bappclass ) = split( /\|/, $browser );
|
||||||
|
|
||||||
$path .=
|
$path .=
|
||||||
'openURL?url='
|
'openURL?url='
|
||||||
@ -822,14 +823,10 @@ sub Set($$@) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
elsif ( lc $cmd eq 'openapp' ) {
|
elsif ( lc $cmd eq 'openapp' ) {
|
||||||
my ($app,$appclass) = split( /\|/, $args[0] );
|
my ( $app, $appclass ) = split( /\|/, $args[0] );
|
||||||
|
|
||||||
$path .=
|
$path .= 'openApp?app=' . $app;
|
||||||
'openApp?app='
|
$path .= '&appclass=' . $appclass
|
||||||
. $app;
|
|
||||||
$path .=
|
|
||||||
'&appclass='
|
|
||||||
. $appclass
|
|
||||||
if ( defined($appclass) );
|
if ( defined($appclass) );
|
||||||
|
|
||||||
$method = 'POST';
|
$method = 'POST';
|
||||||
|
Reference in New Issue
Block a user