mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Update requests requirement (#9876)
* Update request requirement Update request requirement from version v2.14.2 to v2.18.4 * Fix dependency vizio integration 3rd patry packages were removed from requests. Changed dependency from requests to urllib3 * forgot = forgot = when adding the requirement * re-run script/gen_requirements_all.py re-run script/gen_requirements_all.py * Unvendoring urllib3 from requests In v2.16.0 and newer of requests they unverdored urllib3. * undefined name 'InsecureRequestWarning' * Removed requirement to 'urllib3==1.22 * removed import requests * removed urllib3.exceptions.InsecureRequestWarning removed urllib3.exceptions.InsecureRequestWarning travis lint
This commit is contained in:
parent
78c302855a
commit
29d4dca56a
@ -75,11 +75,10 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
if config.get(CONF_SUPPRESS_WARNING):
|
if config.get(CONF_SUPPRESS_WARNING):
|
||||||
import requests
|
from requests.packages import urllib3
|
||||||
from requests.packages.urllib3.exceptions import InsecureRequestWarning
|
|
||||||
_LOGGER.warning('InsecureRequestWarning is disabled '
|
_LOGGER.warning('InsecureRequestWarning is disabled '
|
||||||
'because of Vizio platform configuration.')
|
'because of Vizio platform configuration.')
|
||||||
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
|
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
||||||
add_devices([device], True)
|
add_devices([device], True)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
requests==2.14.2
|
requests==2.18.4
|
||||||
pyyaml>=3.11,<4
|
pyyaml>=3.11,<4
|
||||||
pytz>=2017.02
|
pytz>=2017.02
|
||||||
pip>=8.0.3
|
pip>=8.0.3
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Home Assistant core
|
# Home Assistant core
|
||||||
requests==2.14.2
|
requests==2.18.4
|
||||||
pyyaml>=3.11,<4
|
pyyaml>=3.11,<4
|
||||||
pytz>=2017.02
|
pytz>=2017.02
|
||||||
pip>=8.0.3
|
pip>=8.0.3
|
||||||
|
2
setup.py
2
setup.py
@ -15,7 +15,7 @@ DOWNLOAD_URL = ('{}/archive/'
|
|||||||
PACKAGES = find_packages(exclude=['tests', 'tests.*'])
|
PACKAGES = find_packages(exclude=['tests', 'tests.*'])
|
||||||
|
|
||||||
REQUIRES = [
|
REQUIRES = [
|
||||||
'requests==2.14.2',
|
'requests==2.18.4',
|
||||||
'pyyaml>=3.11,<4',
|
'pyyaml>=3.11,<4',
|
||||||
'pytz>=2017.02',
|
'pytz>=2017.02',
|
||||||
'pip>=8.0.3',
|
'pip>=8.0.3',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user