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

TECH: Use get_plugin_config() instead of template sensor TZ in package.yaml #103

Closed
ArdJonker opened this issue Sep 27, 2024 · 0 comments
Closed
Labels
enhancement New feature or request

Comments

@ArdJonker
Copy link
Contributor

get_plugin_config() provides:

  • Currency
  • Timezone
  • Length (km)
  • Name of HA instance (replace from v2g_liberty.py)
  • Country (pre-select for electricity-providers?)

Use in globals:

config = await self.get_plugin_config()

Replaces:

template:
  - sensor:
    # To make the HA time_zone available to the V2G Liberty python code.
    - name: Time Zone
      unique_id: time_zone
      state: "{{ now().tzinfo }}"
@ArdJonker ArdJonker added the enhancement New feature or request label Sep 27, 2024
ArdJonker added a commit that referenced this issue Oct 2, 2024
…package.yaml

 - For HA_NAME and time_zone this in fixed.
ArdJonker added a commit that referenced this issue Oct 2, 2024
…ig-instead-of-template-sensor-tz-in-packageyaml

 #103 TECH: Use get_plugin_config() instead of template sensor TZ in …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant