Relax check_system_runtime timeout to 10 seconds (#3037)

Probably related to https://github.com/home-assistant/plugin-observer/issues/22

Sometimes i notice my supervisor logs shows a random : 

WARNING (MainThread) [supervisor.misc.tasks] Watchdog/Application found a problem with observer plugin!

i believe the cause to be related to the timeout being too short on a "busy" system, thus my proposal to relax it to 10 seconds.
This commit is contained in:
foreign-sub 2021-08-21 16:15:31 +02:00 committed by GitHub
parent 0899c16895
commit 49fbdedf6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,7 @@ class PluginObserver(PluginBase):
async def check_system_runtime(self) -> bool:
"""Check if the observer is running."""
try:
timeout = aiohttp.ClientTimeout(total=5)
timeout = aiohttp.ClientTimeout(total=10)
async with self.sys_websession.get(
f"http://{self.sys_docker.network.observer!s}/ping", timeout=timeout
) as request: