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

fallback string problem. #292

Open
wants to merge 281 commits into
base: better-build
Choose a base branch
from
Open

fallback string problem. #292

wants to merge 281 commits into from

Conversation

Tomaszito
Copy link

I cant hide fallback sting and also i cant set a tempsensor for it. So it shows N/A.

Should be possible to set `icon: false` to remove the icon but that did
not work
custom_updater is broken and becoming deprecated
nervetattoo and others added 30 commits April 10, 2021 21:09
## [2.2.2](v2.2.1...v2.2.2) (2021-04-10)

### Bug Fixes

* Header toggle ([c9022e4](c9022e4)), closes [#239](#239)
* Sensors with value 0 now shows ([5004a00](5004a00)), closes [#238](#238)
Set `type: relativetime` for a sensor that is a timestamp.
Useful to show when a schedule change is coming for example.
Far more flexible sensor definitions using templating

- Replace all sensor logic with templates.
- Allow overriding builtins (state, current temperature)
- New sensor properties: `template`, `label`, `entity`. Only `template`
  is required.

Fixes #192, #228
Ref #155
Add a show field on sensors to control hide/show, with the intention to
make this field support templates as well.

```yaml
- id: state
  show: false
```
Patch child nodes of simple-thermostat with logic for forwarding
attributes as props after being rendered via a string template.

1. Looks for the attribute `with-hass` to set element.hass
2. Looks for `fwd-*` to re-map attributes to properties
Use a copy of this.config in valueChanged, considering the passed config
might be frozen

Ref #233
This _should_ fix the issue with frozen objects.
After weighing the options I landed on simply JSON parse/stringify as
the config only holds JSON values and should never be able to hold
cyclic values.
If this turns out to not be correct in the future the logic should be
replaced with a library that does proper deep clone
I updated the HACS Badge URL to the new hacs/integration
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

Successfully merging this pull request may close these issues.