Fix naming and documentation of new args for HVCgroep

This commit is contained in:
Sébastiaan
2023-04-05 21:44:52 +02:00
parent e1ea05dd17
commit 5f5ad013e1
2 changed files with 6 additions and 6 deletions

View File

@@ -306,12 +306,12 @@ class Source:
raise Exception("no data found for this address")
bag_id = data[0]["bagid"]
if len(data) > 1 and self.house_letter and self.postfix:
_LOGGER.info(f"Checking {self.house_letter} {self.postfix}")
if len(data) > 1 and self.house_letter and self.suffix:
_LOGGER.info(f"Checking {self.house_letter} {self.suffix}")
for address in data:
if (
address["huisletter"] == self.house_letter
and address["toevoeging"] == self.postfix
and address["toevoeging"] == self.suffix
):
bag_id = address["bagid"]
break

View File

@@ -23,10 +23,10 @@ waste_collection_schedule:
*(string) (required)*
**house_letter**
*(string) (required)*
*(string) (optional)*
**addition**
*(string) (required)*
**suffix**
*(string) (optional)*
**service**
*(string) (optional, default="hvcgroep")*