Closed jasperslits closed 5 months ago
It's probably because your Home Assistant is in English. The locale is only used for the dates. If you set it to 'nl' and change the dateformat to show text, you could get something like 'Vrijdag 3 december 1995'.
I think you could fix the issue by renaming the sensors: Please let me know if this fixes your issue.
Thanks. I guess a lot of people have HA in English and expect Dutch names for afvalinfo sensors, but seeing I am the first one to raise it…
Renaming sensors will work but I’ll see if I can get this to work (conditionally using nl.json for sensor values) via some Python hacking. Seems less work than getting the config flow to work.
Renaming the sensor values is simpler than a code solution.
I am using Home Assistant in English but like to see the Afvalinfo types in Dutch.
The entry is correctly configured:
The sensor.afvalinfo_home_trash_type_tomorrow returns "Residual waste" instead of the expected - based on locale - "Restafval".
It seems to be because of https://github.com/heyajohnny/afvalinfo/commit/36962656e190b744c615a626f67fe9177cf19e18 but I am wondering if this is intended as today the locale is only used in sensors.py and not in sensortomorrow.py . Am I missing somewhere?