Skip to content

Commit

Permalink
Fixes dshokouhi#12: Stray quote
Browse files Browse the repository at this point in the history
  • Loading branch information
ejpenney committed Mar 7, 2023
1 parent 15ae0b3 commit e3a3e7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyobihai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ def get_line_state(self):
services[subtitle] = state
for x in o.findall("./parameter[@name='LastCallerInfo']/value"):
state = x.attrib.get('current')
services[subtitle + " Last Caller Info"] = state.strip("\' ")
services[subtitle + " Last Caller Info"] = state.replace(
"'", ""
).strip()

except requests.exceptions.RequestException as e:
_LOGGER.error(e)
return services
Expand Down

0 comments on commit e3a3e7e

Please sign in to comment.