mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Fix route53 depending on broken package (#38079)
This commit is contained in:
parent
a756d1e637
commit
2b3f22c871
@ -4,7 +4,7 @@ import logging
|
|||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
import boto3
|
import boto3
|
||||||
from ipify import exceptions, get_ip
|
import requests
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import CONF_DOMAIN, CONF_TTL, CONF_ZONE, HTTP_OK
|
from homeassistant.const import CONF_DOMAIN, CONF_TTL, CONF_ZONE, HTTP_OK
|
||||||
@ -84,16 +84,12 @@ def _update_route53(
|
|||||||
|
|
||||||
# Get the IP Address and build an array of changes
|
# Get the IP Address and build an array of changes
|
||||||
try:
|
try:
|
||||||
ipaddress = get_ip()
|
ipaddress = requests.get("https://api.ipify.org/", timeout=5).text()
|
||||||
|
|
||||||
except exceptions.ConnectionError:
|
except requests.RequestException:
|
||||||
_LOGGER.warning("Unable to reach the ipify service")
|
_LOGGER.warning("Unable to reach the ipify service")
|
||||||
return
|
return
|
||||||
|
|
||||||
except exceptions.ServiceError:
|
|
||||||
_LOGGER.warning("Unable to complete the ipfy request")
|
|
||||||
return
|
|
||||||
|
|
||||||
changes = []
|
changes = []
|
||||||
for record in records:
|
for record in records:
|
||||||
_LOGGER.debug("Processing record: %s", record)
|
_LOGGER.debug("Processing record: %s", record)
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
"domain": "route53",
|
"domain": "route53",
|
||||||
"name": "AWS Route53",
|
"name": "AWS Route53",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/route53",
|
"documentation": "https://www.home-assistant.io/integrations/route53",
|
||||||
"requirements": ["boto3==1.9.252", "ipify==1.0.0"],
|
"requirements": ["boto3==1.9.252"],
|
||||||
"codeowners": []
|
"codeowners": []
|
||||||
}
|
}
|
||||||
|
@ -786,9 +786,6 @@ influxdb==5.2.3
|
|||||||
# homeassistant.components.iperf3
|
# homeassistant.components.iperf3
|
||||||
iperf3==0.1.11
|
iperf3==0.1.11
|
||||||
|
|
||||||
# homeassistant.components.route53
|
|
||||||
ipify==1.0.0
|
|
||||||
|
|
||||||
# homeassistant.components.rest
|
# homeassistant.components.rest
|
||||||
# homeassistant.components.verisure
|
# homeassistant.components.verisure
|
||||||
jsonpath==0.82
|
jsonpath==0.82
|
||||||
|
Loading…
x
Reference in New Issue
Block a user