Skip to content

Instantly share code, notes, and snippets.

@pjv
Last active January 12, 2020 12:58
Show Gist options
  • Save pjv/521073b982e37418339afbf420691310 to your computer and use it in GitHub Desktop.
Save pjv/521073b982e37418339afbf420691310 to your computer and use it in GitHub Desktop.
Lovelace Compact Custom Header for old devices
@volpmatt
Copy link

volpmatt commented Jul 21, 2019

Hey, can anyone tell me how to use this please? I have the normal version of CCH working, but not on my Fire HD 8. What do I have to do with this legacy version once I have it installed in

/local/custom-lovelace/compact-custom-header/

and

- url: /local/custom-lovelace/compact-custom-header/compact-custom-header-legacy.js?v=1.0.4
  type: js

added to my Lovelace config?

@skynet01
Copy link

just paste the code from legacy.js (this file) over the standard compact-custom-header.js code and it should be working... however the newest version is not working for me either. Any updates to get the latest version pjv?

@pjv
Copy link
Author

pjv commented Jul 28, 2019

Any updates to get the latest version pjv?

I believe that @maykar is working on a new way of referencing the editor component code and once he releases a version with that re-factoring, I should be able to post up a legacy version of that code.

@pjv
Copy link
Author

pjv commented Aug 4, 2019

@maykar is now providing an up-to-date version of this legacy code here: https://gist.github.com/maykar/278cf3d81e99a7594d4a0d1677fe981f

@GreenhouseAU
Copy link

I assume this is kaput now? (link above is dead)

@pjv
Copy link
Author

pjv commented Jan 12, 2020

I assume this is kaput now? (link above is dead)

You should try asking @maykar if he is still supporting a legacy version of the new custom header which replaced CCH.

@maykar
Copy link

maykar commented Jan 12, 2020

There should be no need for a legacy version for the new custom header. I'm now using Babel to convert in the main project in order to support all devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment