Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-complete in template blocks? #907

Open
jasonmadigan opened this issue Dec 7, 2024 · 0 comments
Open

Auto-complete in template blocks? #907

jasonmadigan opened this issue Dec 7, 2024 · 0 comments

Comments

@jasonmadigan
Copy link

Problem/Motivation

The HA VS Code Add-on used to provide auto-completion for keywords within template blocks. This hasn't been working now for me for some time, and can't recall when it last worked (couple of months ago?). Entity IDs are auto completed elsewhere in editor, but not in blocks.

For example, typing:

sensor.ket

shows matches for sensor.kettle if it were filled in in say, the name, unique_id fields. It is not auto-completing in the below multi-line state block below however.

sensor:
  - name: unaccounted_power
    unique_id: unaccounted_power
    unit_of_measurement: "W"
    device_class: power
    state_class: measurement
    state: >-
      {{
        (
        states('sensor.deye_sunsynk_sol_ark_load_power')|float(0)
        - states('sensor.garage_network_tasmota_energy_power')|float(0)
        - states('sensor.washing_machine_current_consumption')|float(0)
        - states('sensor.dryer_current_consumption')|float(0)
        - states('sensor.plug_desktop_current_consumption')|float(0)
        - states('sensor.office_network_energy_power')|float(0)
        - states('sensor.plug__office_laptop_current_consumption')|float(0)
        - states('sensor.kettle')|float(0)

I read #770 which looked similar, but I see that was resolved some time ago. I am running the latest addon (5.17.3).

Expected behavior

Auto completion of entity IDs within template blocks

Actual behavior

(What actually happened)

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant