mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Bump twentemilieu to 0.3.0 (#33622)
* Bump twentemilieu to 0.3.0 * Fix tests
This commit is contained in:
parent
debc1f78d4
commit
46fa20411e
@ -3,6 +3,6 @@
|
||||
"name": "Twente Milieu",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/twentemilieu",
|
||||
"requirements": ["twentemilieu==0.2.0"],
|
||||
"requirements": ["twentemilieu==0.3.0"],
|
||||
"codeowners": ["@frenck"]
|
||||
}
|
||||
|
@ -2046,7 +2046,7 @@ transmissionrpc==0.11
|
||||
tuyaha==0.0.5
|
||||
|
||||
# homeassistant.components.twentemilieu
|
||||
twentemilieu==0.2.0
|
||||
twentemilieu==0.3.0
|
||||
|
||||
# homeassistant.components.twilio
|
||||
twilio==6.32.0
|
||||
|
@ -746,7 +746,7 @@ toonapilib==3.2.4
|
||||
transmissionrpc==0.11
|
||||
|
||||
# homeassistant.components.twentemilieu
|
||||
twentemilieu==0.2.0
|
||||
twentemilieu==0.3.0
|
||||
|
||||
# homeassistant.components.twilio
|
||||
twilio==6.32.0
|
||||
|
@ -34,7 +34,7 @@ async def test_show_set_form(hass):
|
||||
async def test_connection_error(hass, aioclient_mock):
|
||||
"""Test we show user form on Twente Milieu connection error."""
|
||||
aioclient_mock.post(
|
||||
"https://wasteapi.2go-mobile.com/api/FetchAdress", exc=aiohttp.ClientError
|
||||
"https://twentemilieuapi.ximmio.com/api/FetchAdress", exc=aiohttp.ClientError
|
||||
)
|
||||
|
||||
flow = config_flow.TwenteMilieuFlowHandler()
|
||||
@ -49,7 +49,7 @@ async def test_connection_error(hass, aioclient_mock):
|
||||
async def test_invalid_address(hass, aioclient_mock):
|
||||
"""Test we show user form on Twente Milieu invalid address error."""
|
||||
aioclient_mock.post(
|
||||
"https://wasteapi.2go-mobile.com/api/FetchAdress",
|
||||
"https://twentemilieuapi.ximmio.com/api/FetchAdress",
|
||||
json={"dataList": []},
|
||||
headers={"Content-Type": "application/json"},
|
||||
)
|
||||
@ -70,7 +70,7 @@ async def test_address_already_set_up(hass, aioclient_mock):
|
||||
)
|
||||
|
||||
aioclient_mock.post(
|
||||
"https://wasteapi.2go-mobile.com/api/FetchAdress",
|
||||
"https://twentemilieuapi.ximmio.com/api/FetchAdress",
|
||||
json={"dataList": [{"UniqueId": "12345"}]},
|
||||
headers={"Content-Type": "application/json"},
|
||||
)
|
||||
@ -86,7 +86,7 @@ async def test_address_already_set_up(hass, aioclient_mock):
|
||||
async def test_full_flow_implementation(hass, aioclient_mock):
|
||||
"""Test registering an integration and finishing flow works."""
|
||||
aioclient_mock.post(
|
||||
"https://wasteapi.2go-mobile.com/api/FetchAdress",
|
||||
"https://twentemilieuapi.ximmio.com/api/FetchAdress",
|
||||
json={"dataList": [{"UniqueId": "12345"}]},
|
||||
headers={"Content-Type": "application/json"},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user