mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Adjust config entry state check in yolink (#138904)
This commit is contained in:
parent
2f7a8b4d9d
commit
1bf7e5d749
@ -39,7 +39,7 @@ def async_register_services(hass: HomeAssistant) -> None:
|
||||
continue
|
||||
if entry.domain == DOMAIN:
|
||||
break
|
||||
if entry is None or entry.state == ConfigEntryState.NOT_LOADED:
|
||||
if entry is None or entry.state != ConfigEntryState.LOADED:
|
||||
raise ServiceValidationError(
|
||||
translation_domain=DOMAIN,
|
||||
translation_key="invalid_config_entry",
|
||||
|
Loading…
x
Reference in New Issue
Block a user