Barma-lej / halandroid

Worx Landroid package for Home Assistant based on Landroid Cloud by @MTrab
MIT License
112 stars 49 forks source link

Landroid.yaml German time format instead of English #70

Closed GSzabados closed 1 year ago

GSzabados commented 2 years ago

https://github.com/Barma-lej/halandroid/blob/16a0971098d7eb39c10b8a1528110a3b9b180596/packages/landroid.yaml#L249 https://github.com/Barma-lej/halandroid/blob/16a0971098d7eb39c10b8a1528110a3b9b180596/packages/landroid.yaml#L263 https://github.com/Barma-lej/halandroid/blob/16a0971098d7eb39c10b8a1528110a3b9b180596/packages/landroid.yaml#L277

It is really just cosmetic change, and I am not sure how this could be resolved differently, but an English version of the Tg., Std., should be implemented like:

{{ "%0d D. %0.02d H. %0.02d Min." | format(t // 1440, ((t % 1440) // 60), t % 60) }}

GSzabados commented 2 years ago

Actually looking back the code, it used to be:

https://github.com/Barma-lej/halandroid/blob/19e3b556722fe4f1aae8e642aff1663b5aa22774/packages/landroid.yaml#L108