Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/creating_component_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This example repository shows custom integrations that live in the `<config_dir>

## 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.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This text is outdated as we no longer require a DOMAIN constant at all.

Side note: Details like what characters are allowed in the domain name do not belong in this introductory text. It should be part of the page where we talk about the file structure of an integration.


Create a file `homeassistant/components/hello_state/__init__.py` with one of the two following codeblocks, depending on what you need:

Expand Down