diff --git a/fhem/CHANGED b/fhem/CHANGED index c3089818e..ef9923d7c 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -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) diff --git a/fhem/FHEM/31_PLAYBULB.pm b/fhem/FHEM/31_PLAYBULB.pm index 21cbe21ee..fae25a6b3 100644 --- a/fhem/FHEM/31_PLAYBULB.pm +++ b/fhem/FHEM/31_PLAYBULB.pm @@ -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; }