Comments (7)
Fixed in f92431e
from sun-card.
What value should i put in my lovelace config? I do not see any code that hides the element:
const header = this._config.name === undefined
? sunEntity.friendly_name || localize('domain.sun')
: this._config.name;
If nothing is provided, a reasonable fall back is chosen, it looks like.
from sun-card.
Just remove the default value in config editor (set empty value). If an empty value is provided, the "header" slot in a card takes null value and is being omited in rendering process.
from sun-card.
I'm not using the UI editor; just YAML. See the attached screenshots. When i comment out the name:
field, the default vault is present...
// Probably evaluates to true
this._config.name === undefined?
// Probably evaluates to undefined OR sun
sunEntity.friendly_name || localize('domain.sun')
// This does not become relevant because of the OR condition
: this._config.name;
I have put together some screenshots here that should make it clear:
EDIT: I have also tried w/ the name:
setting defined in YAML, but with no value and with an empty string value:
- type: "custom:sun-card"
# Omit the name to hide it.
# Waiting for feedback..
# See: https://github.com/mishaaq/sun-card/issues/11#issuecomment-568936942
name:
meridiem: true
and
- type: "custom:sun-card"
# Omit the name to hide it.
# Waiting for feedback..
# See: https://github.com/mishaaq/sun-card/issues/11#issuecomment-568936942
name: ""
meridiem: true
``
from sun-card.
Right. Try to set an empty string value in yaml therefore:
name: ""
It should work.
from sun-card.
Can you confirm that either of the two yaml snips i provided do work? If they do, then that means something else is adding the name back... and it will take some time to trace from where as the entire HA/Py code base and the JS client side would be in question/scope. I will try to put a debugger on the JS assets once i figure out how to do that :).
from sun-card.
I can confirm that both variations work (the first one with empty value is being replaced with null value after save, though).
from sun-card.
Related Issues (20)
- Day/night customizing HOT 3
- Release 4.0 doesn't show sensors value HOT 1
- sensor.moon doesnt display HOT 4
- JS error appears for a second or two after refreshing the UI
- Moon not appearing on Lovelace Card HOT 10
- No text showing HOT 2
- Predicted sunrise incorrect HOT 5
- Not working with HA 0.110 HOT 4
- Moon phases for Southern Hemisphere HOT 3
- High CPU Load HOT 3
- Shadows at the top and bottom of the plane, due to the linear gradient opacity. HOT 1
- Disable themes HOT 3
- Current elevation presentation HOT 1
- 24h clock format does not include leading 0
- No default language, card crashes when using "Norwegian Bokmål" (language code "no") HOT 2
- Card not showing up on the Dashboard HOT 4
- Version Key HOT 1
- Moon path
- Sunrise Info Incorrect in Card
- suggestion: hide the sunrise, sunset icons and time since\until HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sun-card.