mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 00:04:11 +01:00
Fix naming and documentation of new args for HVCgroep
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")*
|
||||
|
||||
Reference in New Issue
Block a user