Comments (5)
Where did you find that code?
I use this.hass.localize(component.light.state._.off
) to the translation for the off state in the language of the hass instalation IT is running
from light-popup-card.
So I think the localization is working but it happens when sliding to 0%
light-popup-card/src/light-popup-card.ts
Line 211 in 8e0ad1f
- If I open a popup with a light that is off it says 'Av'
- Turn it on to 50%
- Slide it down to 0% and it says 'Off'
- Reopen the popup and it says 'Av'
from light-popup-card.
when a light has a brightness of 0% it is automatically off
from light-popup-card.
Yeah, I get that. It's the language used that changed.
from light-popup-card.
I agree with @matt8707 :
- when a light is off, and when I open this card, status is
Éteinte
(french) - when I light up and switch off the light inside the card, status becomes
Off
- when I close this card, and reopen it, status is
Éteinte
again
So, when the card is opened, and the light switched off, locale is not taken into account.
This is not a big issue, but it would be cool to solve it !
from light-popup-card.
Related Issues (20)
- Light Popup Card failing to work on Android app HOT 5
- Future: Add transition time HOT 1
- how can i set the css value to exit the popup card when i tap the blank place jusk like light-popup-card?
- Can't get to more-info HOT 1
- Home Assistant 2021.12 brightness broken HOT 2
- Repository structure for 0.5 is not compliant
- Slider sits at the halfway height regardless of actual brightness
- Popup is too small HOT 3
- Bug: Brightness slider isn't fluid / slow to respond to lights actual brightness state HOT 1
- actions: option bad indentation issue HOT 2
- Popup 2 lights side by side? HOT 3
- How do I configure this with the homekit panel card mod?
- Remove !important from CSS style
- Light's that support colours will display as a switch and not a slider HOT 2
- Support Browser Mod 2.0 HOT 1
- Empty More-info dialog showing when clicking empty space HOT 1
- Switch Won't Toggle on Desktop
- Instead of the dimming function, the on/off button
- Popup doesn't close when clicking on backdrop
- Popup cards broken by HA 2023.4 changes HOT 3
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 light-popup-card.