mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
31_PLAYBULB: code cleaning
git-svn-id: https://svn.fhem.de/fhem/trunk@14957 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4df76da379
commit
7a9fdd03a3
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: 31_PLAYBULB: code cleaning
|
||||
- bugfix: 21_HEOS: little Bugfixes, code cleanup
|
||||
- changed: 88_HMCCU Version 4.1.001
|
||||
- feature: HttpUtils/IPv6 with the useInet6 global attribute (Forum #75557)
|
||||
|
@ -41,7 +41,7 @@ use Blocking;
|
||||
use SetExtensions;
|
||||
|
||||
|
||||
my $version = "1.2.4";
|
||||
my $version = "1.2.5";
|
||||
|
||||
|
||||
|
||||
@ -133,7 +133,6 @@ sub PLAYBULB_Define($$) {
|
||||
$hash->{VERSION} = $version;
|
||||
|
||||
|
||||
$modules{PLAYBULB}{defptr}{$hash->{BTMAC}} = $hash;
|
||||
readingsSingleUpdate ($hash,"state","Unknown", 0);
|
||||
$attr{$name}{room} = "PLAYBULB" if( !defined($attr{$name}{room}) );
|
||||
$attr{$name}{devStateIcon} = "unreachable:light_question" if( !defined($attr{$name}{devStateIcon}) );
|
||||
@ -165,12 +164,11 @@ sub PLAYBULB_Undef($$) {
|
||||
|
||||
my ( $hash, $arg ) = @_;
|
||||
|
||||
my $mac = $hash->{BTMAC};
|
||||
my $name = $hash->{NAME};
|
||||
|
||||
|
||||
Log3 $name, 3, "PLAYBULB ($name) - undefined";
|
||||
delete($modules{PLAYBULB}{defptr}{$mac});
|
||||
delete($modules{PLAYBULB}{defptr}{$hash->{BTMAC});
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user