From c4d9ca68ff2f8850789a415f5a09c703c06e7bb3 Mon Sep 17 00:00:00 2001 From: Snuffy2 Date: Sun, 2 Jun 2024 14:27:50 -0400 Subject: [PATCH] Add Advanced Display Options synonym of borough and suburb for postal_town --- README.md | 2 +- custom_components/places/const.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b42c7c05..9d3ce986 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ zone_name[driving, name_no_dupe[type(-, unclassified, category(-, highway))[cate * `city` * `city_clean` * _`city` but removes "Township" and moves "City" to the end if it starts with "City of"_ -* `postal_town` +* `postal_town` (Synonyms: `borough`, `suburb`) * `state` (Synonym: `region`) * `state_abbr` * `county` diff --git a/custom_components/places/const.py b/custom_components/places/const.py index 6f33baf3..57b13c24 100644 --- a/custom_components/places/const.py +++ b/custom_components/places/const.py @@ -328,6 +328,8 @@ "city": ATTR_CITY, "city_clean": ATTR_CITY_CLEAN, "postal_town": ATTR_POSTAL_TOWN, + "suburb": ATTR_POSTAL_TOWN, + "borough": ATTR_POSTAL_TOWN, "region": ATTR_REGION, "state": ATTR_REGION, "state_abbr": ATTR_STATE_ABBR,