From 3d1dcbe68c811b1c204fe506846092cb5f94cdbd Mon Sep 17 00:00:00 2001 From: Bram van Dartel Date: Thu, 26 May 2022 16:08:18 +0200 Subject: [PATCH] fix postal code lower case failure --- custom_components/afvalwijzer/const/const.py | 2 +- custom_components/afvalwijzer/manifest.json | 2 +- custom_components/afvalwijzer/sensor.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/afvalwijzer/const/const.py b/custom_components/afvalwijzer/const/const.py index 4842d86..5443be2 100755 --- a/custom_components/afvalwijzer/const/const.py +++ b/custom_components/afvalwijzer/const/const.py @@ -3,7 +3,7 @@ API = "api" NAME = "afvalwijzer" -VERSION = "2022.05.02" +VERSION = "2022.05.03" ISSUE_URL = "https://github.com/xirixiz/homeassistant-afvalwijzer/issues" _LOGGER = logging.getLogger(__name__) diff --git a/custom_components/afvalwijzer/manifest.json b/custom_components/afvalwijzer/manifest.json index 9d8e7d6..281cce2 100644 --- a/custom_components/afvalwijzer/manifest.json +++ b/custom_components/afvalwijzer/manifest.json @@ -1,7 +1,7 @@ { "domain": "afvalwijzer", "name": "Afvalwijzer", - "version": "2022.05.02", + "version": "2022.05.03", "iot_class": "cloud_polling", "documentation": "https://github.com/xirixiz/homeassistant-afvalwijzer/blob/master/README.md", "issue_tracker": "https://github.com/xirixiz/homeassistant-afvalwijzer/issues", diff --git a/custom_components/afvalwijzer/sensor.py b/custom_components/afvalwijzer/sensor.py index ad49579..0667282 100755 --- a/custom_components/afvalwijzer/sensor.py +++ b/custom_components/afvalwijzer/sensor.py @@ -42,9 +42,9 @@ vol.Optional( CONF_COLLECTOR.strip().lower(), default="mijnafvalwijzer" ): cv.string, - vol.Required(CONF_POSTAL_CODE.strip().upper(), default="1234AB"): cv.string, + vol.Required(CONF_POSTAL_CODE.strip(), default="1234AB"): cv.string, vol.Required(CONF_STREET_NUMBER.strip(), default="5"): cv.string, - vol.Optional(CONF_SUFFIX.strip().upper(), default=""): cv.string, + vol.Optional(CONF_SUFFIX.strip(), default=""): cv.string, vol.Optional(CONF_EXCLUDE_PICKUP_TODAY.strip(), default="true"): cv.string, vol.Optional(CONF_EXCLUDE_LIST.strip().lower(), default=""): cv.string, vol.Optional(CONF_DEFAULT_LABEL.strip(), default="Geen"): cv.string,