mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 10:18:11 +02:00
Small speed up to checking core state (#107845)
This commit is contained in:
@ -325,7 +325,7 @@ async def test_restore_state(hass: HomeAssistant) -> None:
|
||||
),
|
||||
)
|
||||
|
||||
hass.state = CoreState.starting
|
||||
hass.set_state(CoreState.starting)
|
||||
|
||||
initial = datetime.datetime(2017, 1, 1, 23, 42)
|
||||
default = datetime.datetime.combine(datetime.date.today(), DEFAULT_TIME)
|
||||
|
Reference in New Issue
Block a user