Fix growat server config entry missing URL key (#53867)

This commit is contained in:
Franck Nijhof
2021-08-02 18:48:17 +02:00
committed by Paulus Schoutsen
parent df20d69fd2
commit b0f6e8c40a

View File

@@ -598,7 +598,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
config = config_entry.data
username = config[CONF_USERNAME]
password = config[CONF_PASSWORD]
url = config[CONF_URL]
url = config.get(CONF_URL, DEFAULT_URL)
name = config[CONF_NAME]
api = growattServer.GrowattApi()