Use identity checks for CoreState (#107846)

Some of the checks used ==, and some used is. Switch
everything to is as its faster
This commit is contained in:
J. Nick Koston 2024-01-11 23:21:26 -10:00 committed by GitHub
parent b12291633c
commit 4b7a313ece
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 45 additions and 45 deletions

View file

@ -401,7 +401,7 @@ class EntityPlatform:
self._async_cancel_retry_setup = None
await self._async_setup_platform(async_create_setup_task, tries)
if hass.state == CoreState.running:
if hass.state is CoreState.running:
self._async_cancel_retry_setup = async_call_later(
hass, wait_time, setup_again
)