forked from home-assistant/core
Fix growat server config entry missing URL key (#53867)
This commit is contained in:
committed by
Paulus Schoutsen
parent
df20d69fd2
commit
b0f6e8c40a
@@ -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()
|
||||||
|
Reference in New Issue
Block a user