mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Bump growattServer to 1.1.0 (#56084)
This commit is contained in:
parent
0619069ae6
commit
19054e1ffe
@ -47,7 +47,7 @@ class GrowattServerConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
||||
if not login_response["success"] and login_response["errCode"] == "102":
|
||||
return self._async_show_user_form({"base": "invalid_auth"})
|
||||
self.user_id = login_response["userId"]
|
||||
self.user_id = login_response["user"]["id"]
|
||||
|
||||
self.data = user_input
|
||||
return await self.async_step_plant()
|
||||
|
@ -3,7 +3,7 @@
|
||||
"name": "Growatt",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/growatt_server/",
|
||||
"requirements": ["growattServer==1.0.1"],
|
||||
"requirements": ["growattServer==1.1.0"],
|
||||
"codeowners": ["@indykoning", "@muppet3000", "@JasperPlant"],
|
||||
"iot_class": "cloud_polling"
|
||||
}
|
||||
|
@ -879,7 +879,7 @@ def get_device_list(api, config):
|
||||
if not login_response["success"] and login_response["errCode"] == "102":
|
||||
_LOGGER.error("Username, Password or URL may be incorrect!")
|
||||
return
|
||||
user_id = login_response["userId"]
|
||||
user_id = login_response["user"]["id"]
|
||||
if plant_id == DEFAULT_PLANT_ID:
|
||||
plant_info = api.plant_list(user_id)
|
||||
plant_id = plant_info["data"][0]["plantId"]
|
||||
|
@ -745,7 +745,7 @@ greeneye_monitor==2.1
|
||||
greenwavereality==0.5.1
|
||||
|
||||
# homeassistant.components.growatt_server
|
||||
growattServer==1.0.1
|
||||
growattServer==1.1.0
|
||||
|
||||
# homeassistant.components.gstreamer
|
||||
gstreamer-player==1.1.2
|
||||
|
@ -432,7 +432,7 @@ googlemaps==2.5.1
|
||||
greeclimate==0.11.8
|
||||
|
||||
# homeassistant.components.growatt_server
|
||||
growattServer==1.0.1
|
||||
growattServer==1.1.0
|
||||
|
||||
# homeassistant.components.profiler
|
||||
guppy3==3.1.0
|
||||
|
@ -40,7 +40,7 @@ GROWATT_PLANT_LIST_RESPONSE = {
|
||||
},
|
||||
"success": True,
|
||||
}
|
||||
GROWATT_LOGIN_RESPONSE = {"userId": 123456, "userLevel": 1, "success": True}
|
||||
GROWATT_LOGIN_RESPONSE = {"user": {"id": 123456}, "userLevel": 1, "success": True}
|
||||
|
||||
|
||||
async def test_show_authenticate_form(hass):
|
||||
|
Loading…
x
Reference in New Issue
Block a user