mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix growat server config entry missing URL key (#53867)
This commit is contained in:
parent
b2725918b1
commit
3bf06de363
@ -598,7 +598,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||||||
config = config_entry.data
|
config = config_entry.data
|
||||||
username = config[CONF_USERNAME]
|
username = config[CONF_USERNAME]
|
||||||
password = config[CONF_PASSWORD]
|
password = config[CONF_PASSWORD]
|
||||||
url = config[CONF_URL]
|
url = config.get(CONF_URL, DEFAULT_URL)
|
||||||
name = config[CONF_NAME]
|
name = config[CONF_NAME]
|
||||||
|
|
||||||
api = growattServer.GrowattApi()
|
api = growattServer.GrowattApi()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user