minor bugfixing
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2132 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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>/)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user