From 357a548ccacead4e0af557f54d240f962abe1fc4 Mon Sep 17 00:00:00 2001 From: vuffiraa <> Date: Sat, 13 Jan 2018 10:48:53 +0000 Subject: [PATCH] 70_BRAVIA.pm: set application - fixed command typo git-svn-id: https://svn.fhem.de/fhem/trunk@15867 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/70_BRAVIA.pm | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index c9a7238f1..787a761c8 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 70_BRAVIA: typo fixed, 'set application' works now - feature: 93_DbRep: V7.4.0, new commands dumpSQLite/restoreSQLite, execute commands before/after set optimizeTables, vacuum, restoreMySQL, restoreSQLite available, diff --git a/fhem/FHEM/70_BRAVIA.pm b/fhem/FHEM/70_BRAVIA.pm index 40599bfdc..548d1c230 100644 --- a/fhem/FHEM/70_BRAVIA.pm +++ b/fhem/FHEM/70_BRAVIA.pm @@ -488,8 +488,8 @@ sub BRAVIA_Set($@) { } } - # app - elsif ( $a[1] eq "app" ) { + # application + elsif ( $a[1] eq "application" or $a[1] eq "app") { if (defined($a[2]) && $presence eq "present" && $power ne "on" ) { Log3 $name, 4, "BRAVIA $name: indirect switching request to ON"; BRAVIA_Set( $hash, $name, "on" ); @@ -1995,7 +1995,7 @@ sub BRAVIA_GetNormalizedName($) { my ( $name ) = @_; $name =~ s/^\s+//; $name =~ s/\s+$//; - $name =~ s/\s/_/g; + $name =~ s/\s/#/g; $name =~ s/,/./g; return $name; }