mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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:
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||||
"""Set up the Withings component."""
|
"""Set up the Withings component."""
|
||||||
|
|
||||||
|
if conf := config.get(DOMAIN):
|
||||||
async_create_issue(
|
async_create_issue(
|
||||||
hass,
|
hass,
|
||||||
HOMEASSISTANT_DOMAIN,
|
HOMEASSISTANT_DOMAIN,
|
||||||
@ -90,13 +91,13 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
"integration_title": "Withings",
|
"integration_title": "Withings",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
if CONF_CLIENT_ID in config:
|
if CONF_CLIENT_ID in conf:
|
||||||
await async_import_client_credential(
|
await async_import_client_credential(
|
||||||
hass,
|
hass,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
ClientCredential(
|
ClientCredential(
|
||||||
config[CONF_CLIENT_ID],
|
conf[CONF_CLIENT_ID],
|
||||||
config[CONF_CLIENT_SECRET],
|
conf[CONF_CLIENT_SECRET],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user