Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Not able to "hide_tabs" by title if title contains spaces #262

Closed
finity69x2 opened this issue Sep 12, 2020 · 4 comments
Closed

Not able to "hide_tabs" by title if title contains spaces #262

finity69x2 opened this issue Sep 12, 2020 · 4 comments
Labels
Bug Something isn't working

Comments

@finity69x2
Copy link

trying to set "hide_tabs" for tab by title doesn't work if the tab title contains spaces in it.

code example that won't work:

lovelace_views/lovelace_garage_view.yaml

title: Garage Power
cards:
  - type: entities
    title: Garage Power strip
    show_header_toggle: false
    state_color: true
    entities:
.
.
.

ui-lovelace.yaml

custom_header:
  compact_mode: true
  hide_config: true
  hide_raw: true
  hide_help: true
  voice_hide: true
  chevrons: false
  hide_tabs: >-
    {{ 'Alerts, ' if states.sensor.nws_alerts_are_active.state == "off" and states.input_boolean.show_nws_test_alerts_view.state == "off" else '' }}
    {{ 'Tank, ' if states.input_boolean.show_tank_view.state == "off" else '' }}
    {{ 'Garage Power, ' if states.input_boolean.show_garage_power_view.state == "off" else '' }}
.
.
.
views:
  - !include '/config/lovelace_views/lovelace_garage_view.yaml'

in the example the "Garage Power" view won't hide.

@finity69x2 finity69x2 added the Bug Something isn't working label Sep 12, 2020
@github-actions
Copy link

Important:

Issues that don't provide the necessary information listed below may not get a reply and will be closed until the info is provided.

Release is the current version of Custom Header. Be sure that you are using the latest version by checking your browser's dev tools console (usually found by pressing F12). If this doesn't display the current version either clear your cache or reinstall.

If you haven't yet done so, please read the "Before Posting an Issue" section of the docs site.

Include as much of the following info as you can to help me replicate and investigate your issue:

  • A copy/paste of your Custom Header config (found in "Raw Config Editor" or ui-lovelace.yaml).
    Use the tip at the end of this post to format it correctly.
  • Any errors relevant to Custom Header found in the HA logs
  • Any relevant errors found in your browsers dev console (F12)
  • The version of Home Assistant and Custom Header you are using
  • The browsers or apps that are affected (i.e. Firefox, Chrome, Chrome Mobile, iOS HA Companion app, etc.)
  • Installation method (HACS or manual)
  • Lovelace Mode (YAML or Storage). If you are unsure, you are most likely using Storage.

When pasting in your config always place 3 backticks ``` above the first line of your config and after the last line. Doing this will format it correctly so that I may find any formatting errors in your config.

@maykar
Copy link
Owner

maykar commented Sep 12, 2020

Thank you, forgot about this one. It was reported on the forums, but my memory isn't what it used to be. A workaround is setting a path for the view in Lovelace and then use that in hide tabs or use the tabs index.

Will get this fixed in next release.

@maykar
Copy link
Owner

maykar commented Sep 19, 2020

This has been addressed in the latest pre-release 1.7.8. Please, report back here and let me know if it has fixed your issues.

To view pre-releases in HACS go to the Custom Header listing under "Frontend", click the 3 dots in the right hand corner, select "Reinstall", turn on "Show beta versions", select 1.7.8, and hit "Install". Clear cache afterwards just in case.

If you do not see the version 1.7.8 reported in your browser's dev tools console (F12). You may need to reinstall or clear cache. If you installed manually, make sure you're adding to the URL version number in your Lovelace resources.

@maykar
Copy link
Owner

maykar commented Sep 20, 2020

Have tested this in a few different ways and am confident that it has been resolved. Closing as I'm pushing this into a full release. If you're still having issues, please let me know.

@maykar maykar closed this as completed Sep 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants