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:
parent
f983b9f5e3
commit
eb31d435cc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user