VSCode String does not match the pattern of "DEPRECATED^"

I edit my config files with VSCode on my PC using the Home Assistant Config Helper.
All of a sudden I am now getting the Error reported as “String does not match the pattern of “DEPRECATED^”.” I am not sure why it think there is a problem all of sudden since HA check config doesnt flag it as an issue.

The error is in refrence to - /config just under whitelist .

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  latitude: !secret latitude_loc_home
  longitude: !secret longitude_loc_home
  elevation: 475
  unit_system: imperial
  time_zone: America/Los_Angeles
  customize: !include include/customize.yaml
  whitelist_external_dirs:
    - /config
  auth_providers:

Would like to know possible what is causing it or what is deprecated before opening a github issue.

1 Like

Change
whitelist_external_dirs:
to
allowlist_external_dirs:

2 Likes

Thank you, Guess I missed that breaking change.

I got the same error with quite a few of my scripts. Maybe I missed a breaking change as well?

   - service_template: >
            {%- if is_state('binary_sensor.kookscene', 'off') -%}
              script.cooking_off_donker
            {%- else -%}
              script.cooking_on
            {%- endif %}
String does not match the pattern of “DEPRECATED^”.

Anybody can give me a hint? Thanks!

I see the same warning on (the sensor.garage_rechts_distanz):

- platform: template
  sensors:
    car_presence_right:
      entity_id: sensor.garage_rechts_distanz
      value_template: "{{ states('sensor.garage_rechts_distanz') | float < 1.0 }}"

Anyone an idea, what I am doing wrong?

Remove the entity_id line, you never needed it in the first place in your circumstances.

2 Likes

Okay will try. I thought this tells HA which entity to monitor.
Thanks!

It did IF the template did not have an identifiable entity_id already contained within it, but yours does so the entity_id key was superfluous.

Can you also whisper a solution for my “problem”? The script is still working but it hangs a second or ten on above templating and then continues like it should. Thanks!

Change service_template: to service: :slightly_smiling_face:

2 Likes

Will try that tomorrow! Thanks!

1 Like
- id: voordeur_notificatie_lang_open
  initial_state: true
  alias: Voordeur te lang open
  trigger:
    platform: state
    entity_id: binary_sensor.voordeur_contact
    to: 'on'
    for:
      minutes: 5
  action:
    service_template: notify.telegram #This line gives the error: String does not match the pattern of "DEPRECATED^"
    data_template:
      message: The door is still open!

The notifications still work though. Probably solved it just now by changing service_template: to service: :stuck_out_tongue:

I’m getting this issue in ui-lovelace.yaml now suddenly. I opened the file, added the most recent url entry and now it looks like this:

Thank you so much!

Where do you change this?