Skip to content

Commit 8546d44

Browse files
authored
Merge branch 'next' into JC4827W543
2 parents 3b89f25 + e31f532 commit 8546d44

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

content/components/packages.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ merged by concatenation. All other configuration values are replaced with the la
2323

2424
ESPHome uses `!include` to "bring in" packages from other files; this feature is described in [!include](/guides/yaml#yaml-include).
2525

26-
The `packages:` key may have a value that is a list of valid package references, or a mapping of keys to package references.
27-
When a mapping is used, the keys are for reference only and have no significance in themselves.
28-
Where only a single package reference is required, it may be used directly rather than in a list.
26+
The `packages:` key may have a value that is:
27+
28+
- A list of valid package references
29+
- A mapping of keys to package references. When a mapping is used, the keys are for reference only and have no significance in themselves.
30+
2931
Examples of all formats are shown below.
3032

3133
## Local Packages
@@ -186,8 +188,8 @@ sensor:
186188
```
187189

188190
```yaml
189-
# only one package is included here, no need for a list
190-
packages: !include common.yaml
191+
packages:
192+
- !include common.yaml
191193
192194
sensor:
193195
- id: !extend uptime_sensor
@@ -255,7 +257,8 @@ the ID of the entry to modify.
255257
For example, to remove a common uptime sensor that is shared between configurations:
256258

257259
```yaml
258-
packages: !include common.yaml # see above
260+
packages:
261+
- !include common.yaml # see above
259262
260263
sensor:
261264
- id: !remove uptime_sensor
@@ -277,7 +280,8 @@ lvgl:
277280
To remove captive portal for a specific device:
278281

279282
```yaml
280-
packages: !include common.yaml # see above
283+
packages:
284+
- !include common.yaml # see above
281285
282286
captive_portal: !remove
283287
```

0 commit comments

Comments
 (0)