@@ -127,7 +127,7 @@ voice_assistant:
127127 - if :
128128 condition :
129129 - lambda : |-
130- return strcmp( id(wake_word_engine_location).current_option(), "On device") == 0 ;
130+ return id(wake_word_engine_location).current_option() == "On device";
131131 then :
132132 - wait_until :
133133 - and :
@@ -231,7 +231,7 @@ script:
231231 - if :
232232 condition :
233233 - lambda : |-
234- return strcmp( id(wake_word_engine_location).current_option(), "On device") == 0 ;
234+ return id(wake_word_engine_location).current_option() == "On device";
235235 - switch.is_on : use_listen_light
236236 then :
237237 - light.turn_on :
@@ -245,7 +245,7 @@ script:
245245 - if :
246246 condition :
247247 - lambda : |-
248- return strcmp( id(wake_word_engine_location).current_option(), "On device") == 0 ;
248+ return id(wake_word_engine_location).current_option() == "On device";
249249 - switch.is_on : use_listen_light
250250 then :
251251 - light.turn_on :
@@ -265,7 +265,7 @@ script:
265265 - not :
266266 - voice_assistant.is_running :
267267 - lambda : |-
268- return strcmp( id(wake_word_engine_location).current_option(), "On device") == 0 ;
268+ return id(wake_word_engine_location).current_option() == "On device";
269269 then :
270270 - lambda : id(va).set_use_wake_word(false);
271271 - micro_wake_word.start :
@@ -275,7 +275,7 @@ script:
275275 - not :
276276 - voice_assistant.is_running :
277277 - lambda : |-
278- return strcmp( id(wake_word_engine_location).current_option(), "In Home Assistant") == 0 ;
278+ return id(wake_word_engine_location).current_option() == "In Home Assistant";
279279 then :
280280 - lambda : id(va).set_use_wake_word(true);
281281 - voice_assistant.start_continuous :
@@ -284,14 +284,14 @@ script:
284284 - if :
285285 condition :
286286 lambda : |-
287- return strcmp( id(wake_word_engine_location).current_option(), "In Home Assistant") == 0 ;
287+ return id(wake_word_engine_location).current_option() == "In Home Assistant";
288288 then :
289289 - lambda : id(va).set_use_wake_word(false);
290290 - voice_assistant.stop :
291291 - if :
292292 condition :
293293 lambda : |-
294- return strcmp( id(wake_word_engine_location).current_option(), "On device") == 0 ;
294+ return id(wake_word_engine_location).current_option() == "On device";
295295 then :
296296 - micro_wake_word.stop :
297297
0 commit comments