mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
minor bugfixing
git-svn-id: https://svn.fhem.de/fhem/trunk@2132 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3a94decca1
commit
9196c44525
@ -72,7 +72,6 @@ YAMAHA_AVR_GetStatus($;$)
|
||||
my ($hash, $local) = @_;
|
||||
my $name = $hash->{NAME};
|
||||
my $power;
|
||||
my $zone = YAMAHA_AVR_getZoneName($hash, $hash->{ACTIVE_ZONE});
|
||||
|
||||
$local = 0 unless(defined($local));
|
||||
|
||||
@ -90,6 +89,8 @@ YAMAHA_AVR_GetStatus($;$)
|
||||
YAMAHA_AVR_getInputs($hash, $device);
|
||||
}
|
||||
|
||||
my $zone = YAMAHA_AVR_getZoneName($hash, $hash->{ACTIVE_ZONE});
|
||||
|
||||
return "No Zone available" if(not defined($zone));
|
||||
|
||||
|
||||
@ -128,6 +129,11 @@ YAMAHA_AVR_GetStatus($;$)
|
||||
{
|
||||
readingsBulkUpdate($hash, "output", lc($1));
|
||||
}
|
||||
else
|
||||
{
|
||||
undef($hash->{READINGS}{output}) if(defined($hash->{READINGS}{output}));
|
||||
|
||||
}
|
||||
|
||||
if($return =~ /<Input_Sel>(.+)<\/Input_Sel>/)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user