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:
parent
b12291633c
commit
4b7a313ece
31 changed files with 45 additions and 45 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue