mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Make resilient to errors while receiving SMS (#37577)
This commit is contained in:
parent
60c7a91794
commit
08d93b8349
@ -108,7 +108,10 @@ class Gateway:
|
|||||||
|
|
||||||
# delete retrieved sms
|
# delete retrieved sms
|
||||||
_LOGGER.debug("Deleting message")
|
_LOGGER.debug("Deleting message")
|
||||||
|
try:
|
||||||
state_machine.DeleteSMS(Folder=0, Location=entry[0]["Location"])
|
state_machine.DeleteSMS(Folder=0, Location=entry[0]["Location"])
|
||||||
|
except gammu.ERR_MEMORY_NOT_AVAILABLE:
|
||||||
|
_LOGGER.error("Error deleting SMS, memory not available")
|
||||||
else:
|
else:
|
||||||
_LOGGER.debug("Not all parts have arrived")
|
_LOGGER.debug("Not all parts have arrived")
|
||||||
break
|
break
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
"name": "SMS notifications via GSM-modem",
|
"name": "SMS notifications via GSM-modem",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/sms",
|
"documentation": "https://www.home-assistant.io/integrations/sms",
|
||||||
"requirements": ["python-gammu==3.0"],
|
"requirements": ["python-gammu==3.1"],
|
||||||
"codeowners": ["@ocalvo"]
|
"codeowners": ["@ocalvo"]
|
||||||
}
|
}
|
||||||
|
@ -1703,7 +1703,7 @@ python-family-hub-local==0.0.2
|
|||||||
python-forecastio==1.4.0
|
python-forecastio==1.4.0
|
||||||
|
|
||||||
# homeassistant.components.sms
|
# homeassistant.components.sms
|
||||||
# python-gammu==3.0
|
# python-gammu==3.1
|
||||||
|
|
||||||
# homeassistant.components.gc100
|
# homeassistant.components.gc100
|
||||||
python-gc100==1.0.3a
|
python-gc100==1.0.3a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user