Fix bug removing API key on Forecast Solar (#55119)

pull/55139/head
Klaas Schoute 2021-08-24 11:08:15 +02:00 committed by GitHub
parent d3f17de072
commit 96056f3fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -96,7 +96,11 @@ class ForecastSolarOptionFlowHandler(OptionsFlow):
{
vol.Optional(
CONF_API_KEY,
default=self.config_entry.options.get(CONF_API_KEY, ""),
description={
"suggested_value": self.config_entry.options.get(
CONF_API_KEY
)
},
): str,
vol.Required(
CONF_DECLINATION,