mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-16 21:56:29 +00:00
Improve Supervisor restart detection message (#5672)
The word "reboot" is usually used when a operating system is restarted. The current log message could be interpreted that the Supervisor detected an operating system reboot. Use restart to make it clear that the Supervisor detected a restart of itself.
This commit is contained in:
parent
c315a15816
commit
ae266e1692
@ -219,9 +219,9 @@ class Core(CoreSysAttributes):
|
|||||||
await self.sys_addons.boot(AddonStartup.INITIALIZE)
|
await self.sys_addons.boot(AddonStartup.INITIALIZE)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# HomeAssistant is already running / supervisor have only reboot
|
# HomeAssistant is already running, only Supervisor restarted
|
||||||
if self.sys_hardware.helper.last_boot == self.sys_config.last_boot:
|
if self.sys_hardware.helper.last_boot == self.sys_config.last_boot:
|
||||||
_LOGGER.info("Supervisor reboot detected")
|
_LOGGER.info("Detected Supervisor restart")
|
||||||
return
|
return
|
||||||
|
|
||||||
# reset register services / discovery
|
# reset register services / discovery
|
||||||
|
Loading…
x
Reference in New Issue
Block a user