YAMAHA_AVR: erase current-Readings when switching to non-supported inputs; added apostrophe html entity

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5814 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2014-05-10 18:07:03 +00:00
parent 1599f31b29
commit 2b3e7fb6e1

View File

@@ -231,6 +231,14 @@ YAMAHA_AVR_GetStatus($;$)
}
}
else
{
readingsBulkUpdate($hash, "currentAlbum", "", 0);
readingsBulkUpdate($hash, "currentTitle", "", 0);
readingsBulkUpdate($hash, "currentChannel", "", 0);
readingsBulkUpdate($hash, "currentStation", "", 0);
readingsBulkUpdate($hash, "currentArtist", "", 0);
}
}
# input name as it is displayed on the receivers front display
@@ -1122,6 +1130,7 @@ sub YAMAHA_AVR_html2txt($)
$string =~ s/ / /g;
$string =~ s/&/&/g;
$string =~ s/'/'/g;
$string =~ s/(\xe4|&auml;)/<2F>/g;
$string =~ s/(\xc4|&Auml;)/<2F>/g;
$string =~ s/(\xf6|&ouml;)/<2F>/g;