70_ENIGMA2: use ReadingsVal()

git-svn-id: https://svn.fhem.de/fhem/trunk@10456 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2016-01-11 00:04:25 +00:00
parent 472bbd3c24
commit 3891baf338

View File

@@ -225,9 +225,9 @@ sub ENIGMA2_Set($@) {
$usage .= " mute:on,off"
if ( ReadingsVal( $name, "mute", "-" ) ne "-" );
$usage .= " input:-,tv,radio"
if ( ReadingsVal( $name, "input", "-" ) eq "-" );
if ( $input eq "-" );
$usage .= " input:tv,radio"
if ( ReadingsVal( $name, "input", "-" ) ne "-" );
if ( $input ne "-" );
if ($adminMode) {
$usage .= " reboot:noArg";