mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 01:07:10 +00:00
Gracefully handle additional GSM errors (#54114)
This commit is contained in:
parent
890d190612
commit
07f8236e6f
@ -25,6 +25,10 @@ class Gateway:
|
||||
await self._worker.set_incoming_sms_async()
|
||||
except gammu.ERR_NOTSUPPORTED:
|
||||
_LOGGER.warning("Your phone does not support incoming SMS notifications!")
|
||||
except gammu.GSMError:
|
||||
_LOGGER.warning(
|
||||
"GSM error, your phone does not support incoming SMS notifications!"
|
||||
)
|
||||
else:
|
||||
await self._worker.set_incoming_callback_async(self.sms_callback)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user