Adjust config entry state check in yolink (#138904)

pull/138916/head
Erik Montnemery 2025-02-20 09:01:15 +01:00 committed by GitHub
parent 2f7a8b4d9d
commit 1bf7e5d749
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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",