Skip to content

Commit

Permalink
Merge pull request #286 from Snuffy2/Use-City-Clean-in-Formatted-Place
Browse files Browse the repository at this point in the history
Use City Clean in Formatted Place
  • Loading branch information
Snuffy2 authored Jun 2, 2024
2 parents 9dc4ead + 3945eb5 commit 66e92b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/places/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1367,10 +1367,10 @@ async def _async_build_formatted_place(self):

else:
formatted_place_array.append((self._get_attr(ATTR_PLACE_NAME)).strip())
if not self._is_attr_blank(ATTR_CITY):
formatted_place_array.append(
(self._get_attr(ATTR_CITY)).replace(" Township", "").strip()
)
if not self._is_attr_blank(ATTR_CITY_CLEAN):
formatted_place_array.append((self._get_attr(ATTR_CITY_CLEAN)).strip())
elif not self._is_attr_blank(ATTR_CITY):
formatted_place_array.append((self._get_attr(ATTR_CITY)).strip())
elif not self._is_attr_blank(ATTR_COUNTY):
formatted_place_array.append((self._get_attr(ATTR_COUNTY)).strip())
if not self._is_attr_blank(ATTR_STATE_ABBR):
Expand Down

0 comments on commit 66e92b6

Please sign in to comment.