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:
Stefan Agner 2025-02-26 19:10:40 +01:00 committed by GitHub
parent c315a15816
commit ae266e1692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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