2
0
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:
drhirn 2022-11-18 08:24:49 +00:00
parent 9cc3b7abfd
commit b6cffb78a5

View File

@ -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;