bruxy70 / Garbage-Collection

🗑 Custom Home Assistant sensor for scheduling garbage collection (or other regularly re-occurring events - weekly on given days, semi-weekly or monthly)
MIT License
387 stars 90 forks source link

Case of text in "Verbose state (text, instead of number)" mode #344

Closed ChirpyTurnip closed 2 years ago

ChirpyTurnip commented 2 years ago

Write your question here

Hi,

Is it possible to get the verbose text state to be displayed in sentence case? That is, when it is "in two days" or "tomorrow" or "today" it displays "In two days", "Tomorrow", or "Today"?

It just looks a little weird in lower case.

Other than that I really like the simplified approach - I think it is a good change and a huge improvement! :-)

CP.

bruxy70 commented 2 years ago

Thanks. That's probably an issue with the localization, let me check it. The way it works all across HA is, the actual states are in lower case, but then they are displayed on the dashboard in the language you have selected for the user (including English). And this translation typically shows the state with first letter capital. If you check all the other sensors, this is how it works. I thought it worked, but it apparently broke somewhere. Let me fix hat and include in the next release. Thanks.

bruxy70 commented 2 years ago

Right, the translations did not work. Fixed on dev, will be in the next release.

ChirpyTurnip commented 2 years ago

Excellent! I did loop back to check a running browser instance that hasn't refreshed since I update the integration and it was working in the old version so that's good news!

:-)

On Wed, 9 Feb 2022, 11:24 Vaclav, @.***> wrote:

Right, the translations did not work. Fixed on dev, will be in the next release.

— Reply to this email directly, view it on GitHub https://github.com/bruxy70/Garbage-Collection/issues/344#issuecomment-1033123796, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUIP7ZQVDV77Y6F5OSDHQSTU2GJZRANCNFSM5N3ONPGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>