mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Don't show withings repair if it's not in YAML (#101054)
This commit is contained in:
parent
081f194f6a
commit
ad8033c0f2
@ -76,6 +76,7 @@ CONFIG_SCHEMA = vol.Schema(
|
||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Set up the Withings component."""
|
||||
|
||||
if conf := config.get(DOMAIN):
|
||||
async_create_issue(
|
||||
hass,
|
||||
HOMEASSISTANT_DOMAIN,
|
||||
@ -90,13 +91,13 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"integration_title": "Withings",
|
||||
},
|
||||
)
|
||||
if CONF_CLIENT_ID in config:
|
||||
if CONF_CLIENT_ID in conf:
|
||||
await async_import_client_credential(
|
||||
hass,
|
||||
DOMAIN,
|
||||
ClientCredential(
|
||||
config[CONF_CLIENT_ID],
|
||||
config[CONF_CLIENT_SECRET],
|
||||
conf[CONF_CLIENT_ID],
|
||||
conf[CONF_CLIENT_SECRET],
|
||||
),
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user