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:
markusbloch
2012-11-17 21:53:14 +00:00
parent 44b37cda78
commit 1cd72805c4

View File

@@ -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>/)
{