2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 12:46:03 +00:00

74_Unifi: Minor loglevel-bugfix

git-svn-id: https://svn.fhem.de/fhem/trunk@17001 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wuehler 2018-07-18 10:48:39 +00:00
parent b6831a4d28
commit e7bbafc444
2 changed files with 6 additions and 2 deletions

View File

@ -33,9 +33,12 @@
# - feature: 74_Unifi: block clients by mac-address # - feature: 74_Unifi: block clients by mac-address
# V 3.0.2 # V 3.0.2
# - fixed: 74_Unifi: Minor bugfix in notify-function # - fixed: 74_Unifi: Minor bugfix in notify-function
# V 3.0.3
# - fixed: 74_Unifi: Minor loglevel-bugfix
package main; package main;
my $version="3.0.3";
use strict; use strict;
use warnings; use warnings;
use HttpUtils; use HttpUtils;
@ -166,6 +169,7 @@ sub Unifi_Define($$) {
sslargs => { SSL_verify_mode => 0 }, sslargs => { SSL_verify_mode => 0 },
}; };
$hash->{VERSION}=$version;
my $username = Unifi_encrypt($a[4]); my $username = Unifi_encrypt($a[4]);
my $password = Unifi_encrypt($a[5]); my $password = Unifi_encrypt($a[5]);
$hash->{helper}{username} = $username; $hash->{helper}{username} = $username;
@ -728,7 +732,7 @@ sub Unifi_Write($$){
my ( $hash, $type, $ap_id, $port_overrides) = @_; #TODO: ap_id und port_overrides in @a, damit es für andere $type auch geht. my ( $hash, $type, $ap_id, $port_overrides) = @_; #TODO: ap_id und port_overrides in @a, damit es für andere $type auch geht.
my ($name,$self) = ($hash->{NAME},Unifi_Whoami()); my ($name,$self) = ($hash->{NAME},Unifi_Whoami());
Log3 $name, 1, "$name ($self) - executed with ".$type; Log3 $name, 5, "$name ($self) - executed with ".$type;
if($type eq "Unifi_RestJson_Send"){ if($type eq "Unifi_RestJson_Send"){
Unifi_RestJson_Send($hash, $ap_id, {port_overrides => $port_overrides }); Unifi_RestJson_Send($hash, $ap_id, {port_overrides => $port_overrides });
} }

View File

@ -22,6 +22,7 @@
# - state des USW korrekt setzen (aktuell nur connected und provisioning) # - state des USW korrekt setzen (aktuell nur connected und provisioning)
package main; package main;
my $version="0.92";
# Laden evtl. abhängiger Perl- bzw. FHEM-Module # Laden evtl. abhängiger Perl- bzw. FHEM-Module
use strict; use strict;
use warnings; use warnings;
@ -39,7 +40,6 @@ sub UnifiSwitch_Parse($$);
sub UnifiSwitch_Whoami(); sub UnifiSwitch_Whoami();
sub UnifiSwitch_Whowasi(); sub UnifiSwitch_Whowasi();
my $version="0.91";
sub UnifiSwitch_Initialize($$) { sub UnifiSwitch_Initialize($$) {
my ($hash) = @_; my ($hash) = @_;