mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-17 05:16:02 +00:00
10_RHASSPY.pm: fixed missing value in response from rhasspySpecials_confirm
git-svn-id: https://svn.fhem.de/fhem/trunk@26718 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9cc3b7abfd
commit
b6cffb78a5
@ -2451,7 +2451,7 @@ sub getNeedsConfirmation {
|
||||
&& defined $hash->{helper}{tweaks}{confirmIntentResponses}{$intent} ? $hash->{helper}{tweaks}{confirmIntentResponses}{$intent}
|
||||
: getResponse($hash, 'DefaultConfirmationRequestRawInput');
|
||||
my $words = $hash->{helper}{devicemap}{devices}{$device}->{confirmValueMap} // $hash->{helper}{lng}->{words} // {};
|
||||
$Value = $words->{$data->{Value}} if defined $data->{Value};
|
||||
$Value = $words->{$data->{Value}} if defined $data->{Value} && defined $words->{$data->{Value}};
|
||||
$response =~ s{(\$\w+)}{$1}eegx;
|
||||
Log3( $hash, 5, "[$hash->{NAME}] getNeedsConfirmation is true on device level, response is $response" );
|
||||
$data->{'.DevName'} = $device;
|
||||
|
Loading…
x
Reference in New Issue
Block a user