mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-15 21:26:29 +00:00
Manual stop true after a reboot (#3902)
* Manual stop true after a reboot * Fix test
This commit is contained in:
parent
d15a7c27ca
commit
a1a9c55542
@ -114,7 +114,7 @@ class Addon(AddonModel):
|
||||
self.instance: DockerAddon = DockerAddon(coresys, self)
|
||||
self._state: AddonState = AddonState.UNKNOWN
|
||||
self._manual_stop: bool = (
|
||||
self.sys_hardware.helper.last_boot == self.sys_config.last_boot
|
||||
self.sys_hardware.helper.last_boot != self.sys_config.last_boot
|
||||
)
|
||||
self._listeners: list[EventListener] = []
|
||||
|
||||
|
@ -223,7 +223,7 @@ async def test_listener_attached_on_install(coresys: CoreSys, repository):
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"boot_timedelta,restart_count", [(timedelta(), 0), (timedelta(days=1), 1)]
|
||||
"boot_timedelta,restart_count", [(timedelta(), 1), (timedelta(days=1), 0)]
|
||||
)
|
||||
async def test_watchdog_during_attach(
|
||||
coresys: CoreSys,
|
||||
|
Loading…
x
Reference in New Issue
Block a user