Bump pynws version to 0.8.1 (#26770)

* Bump to version 0.8.1

Fixes #26753.

* gen_requirements.py changes

* fix default params change in tests
This commit is contained in:
MatthewFlamm 2019-09-21 09:56:40 -04:00 committed by Martin Hjelmare
parent ed21019b7a
commit 0e15785602
4 changed files with 8 additions and 19 deletions

View File

@ -4,5 +4,5 @@
"documentation": "https://www.home-assistant.io/components/nws",
"dependencies": [],
"codeowners": ["@MatthewFlamm"],
"requirements": ["pynws==0.7.4"]
"requirements": ["pynws==0.8.1"]
}

View File

@ -1339,7 +1339,7 @@ pynuki==1.3.3
pynut2==2.1.2
# homeassistant.components.nws
pynws==0.7.4
pynws==0.8.1
# homeassistant.components.nx584
pynx584==0.4

View File

@ -312,7 +312,7 @@ pymfy==0.5.2
pymonoprice==0.3
# homeassistant.components.nws
pynws==0.7.4
pynws==0.8.1
# homeassistant.components.nx584
pynx584==0.4

View File

@ -110,9 +110,7 @@ async def test_imperial(hass, aioclient_mock):
STAURL.format(40.0, -85.0), text=load_fixture("nws-weather-sta-valid.json")
)
aioclient_mock.get(
OBSURL.format("KMIE"),
text=load_fixture("nws-weather-obs-valid.json"),
params={"limit": 1},
OBSURL.format("KMIE"), text=load_fixture("nws-weather-obs-valid.json")
)
aioclient_mock.get(
FORCURL.format(40.0, -85.0), text=load_fixture("nws-weather-fore-valid.json")
@ -142,9 +140,7 @@ async def test_metric(hass, aioclient_mock):
STAURL.format(40.0, -85.0), text=load_fixture("nws-weather-sta-valid.json")
)
aioclient_mock.get(
OBSURL.format("KMIE"),
text=load_fixture("nws-weather-obs-valid.json"),
params={"limit": 1},
OBSURL.format("KMIE"), text=load_fixture("nws-weather-obs-valid.json")
)
aioclient_mock.get(
FORCURL.format(40.0, -85.0), text=load_fixture("nws-weather-fore-valid.json")
@ -174,9 +170,7 @@ async def test_none(hass, aioclient_mock):
STAURL.format(40.0, -85.0), text=load_fixture("nws-weather-sta-valid.json")
)
aioclient_mock.get(
OBSURL.format("KMIE"),
text=load_fixture("nws-weather-obs-null.json"),
params={"limit": 1},
OBSURL.format("KMIE"), text=load_fixture("nws-weather-obs-null.json")
)
aioclient_mock.get(
FORCURL.format(40.0, -85.0), text=load_fixture("nws-weather-fore-null.json")
@ -208,7 +202,6 @@ async def test_fail_obs(hass, aioclient_mock):
aioclient_mock.get(
OBSURL.format("KMIE"),
text=load_fixture("nws-weather-obs-valid.json"),
params={"limit": 1},
status=400,
)
aioclient_mock.get(
@ -234,9 +227,7 @@ async def test_fail_stn(hass, aioclient_mock):
status=400,
)
aioclient_mock.get(
OBSURL.format("KMIE"),
text=load_fixture("nws-weather-obs-valid.json"),
params={"limit": 1},
OBSURL.format("KMIE"), text=load_fixture("nws-weather-obs-valid.json")
)
aioclient_mock.get(
FORCURL.format(40.0, -85.0), text=load_fixture("nws-weather-fore-valid.json")
@ -257,9 +248,7 @@ async def test_invalid_config(hass, aioclient_mock):
STAURL.format(40.0, -85.0), text=load_fixture("nws-weather-sta-valid.json")
)
aioclient_mock.get(
OBSURL.format("KMIE"),
text=load_fixture("nws-weather-obs-valid.json"),
params={"limit": 1},
OBSURL.format("KMIE"), text=load_fixture("nws-weather-obs-valid.json")
)
aioclient_mock.get(
FORCURL.format(40.0, -85.0), text=load_fixture("nws-weather-fore-valid.json")