Update pyatag to 0.3.4.4 (#40720)

This commit is contained in:
MatsNl 2020-09-29 11:32:42 +02:00 committed by GitHub
parent 7e58bfe01d
commit fe6786aa6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 9 deletions

View File

@ -3,6 +3,6 @@
"name": "Atag",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/atag/",
"requirements": ["pyatag==0.3.3.4"],
"requirements": ["pyatag==0.3.4.4"],
"codeowners": ["@MatsNL"]
}

View File

@ -1247,7 +1247,7 @@ pyalmond==0.0.2
pyarlo==0.2.3
# homeassistant.components.atag
pyatag==0.3.3.4
pyatag==0.3.4.4
# homeassistant.components.netatmo
pyatmo==4.0.0

View File

@ -613,7 +613,7 @@ pyalmond==0.0.2
pyarlo==0.2.3
# homeassistant.components.atag
pyatag==0.3.3.4
pyatag==0.3.4.4
# homeassistant.components.netatmo
pyatmo==4.0.0

View File

@ -59,7 +59,7 @@ async def init_integration(
) -> MockConfigEntry:
"""Set up the Atag integration in Home Assistant."""
aioclient_mock.get(
aioclient_mock.post(
"http://127.0.0.1:10000/retrieve",
json=RECEIVE_REPLY,
headers={"Content-Type": CONTENT_TYPE_JSON},

View File

@ -78,14 +78,14 @@ async def test_full_flow_implementation(
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker
) -> None:
"""Test registering an integration and finishing flow works."""
aioclient_mock.get(
"http://127.0.0.1:10000/retrieve",
json=RECEIVE_REPLY,
)
aioclient_mock.post(
"http://127.0.0.1:10000/pair",
json=PAIR_REPLY,
)
aioclient_mock.post(
"http://127.0.0.1:10000/retrieve",
json=RECEIVE_REPLY,
)
result = await hass.config_entries.flow.async_init(
DOMAIN,
context={"source": config_entries.SOURCE_USER},

View File

@ -14,7 +14,7 @@ async def test_config_entry_not_ready(
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker
) -> None:
"""Test configuration entry not ready on library error."""
aioclient_mock.get("http://127.0.0.1:10000/retrieve", exc=aiohttp.ClientError)
aioclient_mock.post("http://127.0.0.1:10000/retrieve", exc=aiohttp.ClientError)
entry = await init_integration(hass, aioclient_mock)
assert entry.state == ENTRY_STATE_SETUP_RETRY