pippyn / Home-Assistant-Sensor-Afvalbeheer

Provides Home Assistant sensors for multiple Dutch and Belgium waste collectors
Apache License 2.0
272 stars 85 forks source link

Dateformat not changing format #448

Closed Matrox1983 closed 7 months ago

Matrox1983 commented 7 months ago

In configuration.yaml I have this as dateformat setting: dateformat: '%d-%m-%Y'

But somehow this doesn't change anything and see the date as follows: 2024-12-30

Anyone has the solution?

pippyn commented 7 months ago

What is your config?

Matrox1983 commented 7 months ago

Is this what you need?

afvalbeheer: wastecollector: HVC resources:

Friedrieck commented 7 months ago

Probably because of dateobject: 1 Either you want a formatted string, or you want a date object.

Matrox1983 commented 7 months ago

That did the trick indeed, problem solved for me.