Bump growattServer to 1.3.0 (#82953)
* Growatt library bump and init tweak (#81951) * Addressing review comments (#81951)
This commit is contained in:
parent
2f91e2d6a5
commit
d243da99c7
4 changed files with 9 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
"name": "Growatt",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/growatt_server/",
|
||||
"requirements": ["growattServer==1.2.4"],
|
||||
"requirements": ["growattServer==1.3.0"],
|
||||
"codeowners": ["@indykoning", "@muppet3000", "@JasperPlant"],
|
||||
"iot_class": "cloud_polling",
|
||||
"loggers": ["growattServer"]
|
||||
|
|
|
@ -80,7 +80,12 @@ async def async_setup_entry(
|
|||
config[CONF_URL] = url
|
||||
hass.config_entries.async_update_entry(config_entry, data=config)
|
||||
|
||||
api = growattServer.GrowattApi()
|
||||
# Initialise the library with a random user id each time it is started,
|
||||
# also extend the library's default identifier to include 'home-assistant'
|
||||
api = growattServer.GrowattApi(
|
||||
add_random_user_id=True,
|
||||
agent_identifier=f"{growattServer.GrowattApi.agent_identifier} - home-assistant",
|
||||
)
|
||||
api.server_url = url
|
||||
|
||||
devices, plant_id = await hass.async_add_executor_job(get_device_list, api, config)
|
||||
|
|
|
@ -817,7 +817,7 @@ greenwavereality==0.5.1
|
|||
gridnet==4.0.0
|
||||
|
||||
# homeassistant.components.growatt_server
|
||||
growattServer==1.2.4
|
||||
growattServer==1.3.0
|
||||
|
||||
# homeassistant.components.google_sheets
|
||||
gspread==5.5.0
|
||||
|
|
|
@ -612,7 +612,7 @@ greeneye_monitor==3.0.3
|
|||
gridnet==4.0.0
|
||||
|
||||
# homeassistant.components.growatt_server
|
||||
growattServer==1.2.4
|
||||
growattServer==1.3.0
|
||||
|
||||
# homeassistant.components.google_sheets
|
||||
gspread==5.5.0
|
||||
|
|
Loading…
Add table
Reference in a new issue