From b24c9ad13278bb09ba305cdb29042f3845c2b102 Mon Sep 17 00:00:00 2001 From: PaulDGAL <151446652+PaulDGAL@users.noreply.github.com> Date: Thu, 16 Apr 2026 08:21:19 +0100 Subject: [PATCH] Update creating_component_index.md Including the hyphen is an easy error that may not show up in testing but prevents any services in the integration operating. --- docs/creating_component_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/creating_component_index.md b/docs/creating_component_index.md index 3696a234c68..859d94e0961 100644 --- a/docs/creating_component_index.md +++ b/docs/creating_component_index.md @@ -16,7 +16,7 @@ This example repository shows custom integrations that live in the ` ## The minimum -The scaffold integration contains a bit more than just the bare minimum. The minimum is that you define a `DOMAIN` constant that contains the domain of the integration. The second part is that it needs to define a setup method that returns a boolean if the set-up was successful. +The scaffold integration contains a bit more than just the bare minimum. The minimum is that you define a `DOMAIN` constant (which can consist of alphabetic and the underscore characters, the hyphen is not allowed) that contains the domain of the integration. The second part is that it needs to define a setup method that returns a boolean if the set-up was successful. Create a file `homeassistant/components/hello_state/__init__.py` with one of the two following codeblocks, depending on what you need: