YAMAHA_AVR: erase current-Readings when switching to non-supported inputs; added apostrophe html entity
git-svn-id: https://svn.fhem.de/fhem/trunk@5814 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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|ä)/<2F>/g;
|
||||
$string =~ s/(\xc4|Ä)/<2F>/g;
|
||||
$string =~ s/(\xf6|ö)/<2F>/g;
|
||||
|
||||
Reference in New Issue
Block a user