Skip to content

Commit

Permalink
Merge pull request #208 from tykeal/fix_phone_number_squeezing
Browse files Browse the repository at this point in the history
Fix: Correct bad phone number squeeze logic
  • Loading branch information
tykeal authored Jun 19, 2024
2 parents 9f90ab9 + 2dd75d2 commit ce6cb8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/rental_control/sensors/calsensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _extract_last_four(self) -> str | None:
elif "Phone" in self._event_attributes["description"]:
phone = self._extract_phone_number()
if phone:
phone.replace(" ", "")
phone = phone.replace(" ", "")
if len(phone) >= 4:
return str(phone)[-4:]

Expand Down

0 comments on commit ce6cb8c

Please sign in to comment.