2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

39_alexa.pm: fix for multiple intents for the same characteristic

git-svn-id: https://svn.fhem.de/fhem/trunk@12791 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-12-16 23:39:21 +00:00
parent f983b9f5e3
commit eb31d435cc

View File

@ -252,11 +252,13 @@ Log 1, Dumper $characteristicsOfIntent;
my $nr = $i?chr(65+$i):'';
$nr = '';
$nr = '' if( $mapping->{valueSuffix} );
#my $intent = $characteristic .'Intent'. $nr;
my $intent = $characteristic;
$intent = lcfirst($mapping->{valueSuffix}) if( $mapping->{valueSuffix} );
$intent .= 'Intent';
$intent .= $nr;
next if( $intents->{$intent} );
$intents->{$intent} = 1;