mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
70_DENON_AVR: handled some uninitialized values
git-svn-id: https://svn.fhem.de/fhem/trunk@25721 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
adc19c0fc5
commit
5ee6b23978
@ -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: 70_DENON_AVR: handled some uninitialized values
|
||||
- new: 72_UBUS_CALL: module to send call requests via uBus client
|
||||
- new: 72_UBUS_CLIENT: module to communicate with uBus devices
|
||||
- bugfix: 88_HMCCU: bugfixes and improvements
|
||||
|
@ -1531,7 +1531,7 @@ DENON_AVR_Read($)
|
||||
my $state = ReadingsVal( $name, "power", "off" );
|
||||
my $buf = '';
|
||||
my $zone = 0;
|
||||
my $return;
|
||||
my $return = '';
|
||||
|
||||
if(defined($hash->{helper}{PARTIAL}) && $hash->{helper}{PARTIAL}) {
|
||||
$buf = $hash->{helper}{PARTIAL} . DevIo_SimpleRead($hash);
|
||||
@ -1761,6 +1761,7 @@ DENON_AVR_Parse(@)
|
||||
if($2 eq 'ON' || $2 eq 'OFF')
|
||||
{
|
||||
my $status = DENON_GetValue('PS', $1);
|
||||
$status = "unknown" unless defined($status);
|
||||
readingsBulkUpdate($hash, $status, lc($2)) if($status ne "unknown");
|
||||
$return = $status." ".lc($2);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user