From 6ff15faf0adae16fa0c3fa7bf24e0bdb18c6b136 Mon Sep 17 00:00:00 2001 From: zznidar Date: Fri, 6 Feb 2026 22:49:22 +0100 Subject: [PATCH] Suggest against using exit() as per #811 --- docs/reference.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference.rst b/docs/reference.rst index a1fff92..93a9ed5 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -2228,6 +2228,7 @@ it doesn't faithfully mimic Python. Here are some areas where pyscript differs Python code (and not call any pyscript functions, which are all async). Bad things will happen if you call pyscript functions from a thread you create; currently there isn't error checking for that case. +- Avoid using ``exit()`` calls in your scripts, as they can `crash `__ the whole Home Assistant. A handful of language features are not supported: