2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

PHTV: fix JSON format (forum #37801)

git-svn-id: https://svn.fhem.de/fhem/trunk@8692 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2015-06-04 17:29:26 +00:00
parent 2e93d0561a
commit de0dfa4d9f

View File

@ -1219,7 +1219,7 @@ sub PHTV_Set($@) {
if ( $hash->{READINGS}{state}{VAL} eq "on" ) {
PHTV_SendCommand( $hash, "sources/current",
'"id": ' . $input_id, $input_id );
'"id": "' . $input_id . '"', $input_id );
if ( $hash->{READINGS}{input}{VAL} ne $a[2] ) {
readingsSingleUpdate( $hash, "input", $a[2], 1 );