Skip to content

Commit

Permalink
Merge pull request #92 from pippyn/patch-1
Browse files Browse the repository at this point in the history
Check if self._place_type is not none before trying to convert case to lower
  • Loading branch information
Snuffy2 authored Sep 27, 2022
2 parents ca85e8c + 1bbe69d commit 54a5c3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/places/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,8 @@ def do_update(self, reason):
+ self._street.strip()
)
if (
self._place_type.lower() == "house"
self._place_type is not None
and self._place_type.lower() == "house"
and self._place_neighbourhood is not None
):
formatted_place_array.append(
Expand Down

0 comments on commit 54a5c3c

Please sign in to comment.