Skip to content

Commit 21e4db5

Browse files
authored
Merge pull request #137 from ypid/feature/entity_category_config
Move all "Controls" except "LED Strip" to "Config" entity_category
2 parents 5cb350c + e08f040 commit 21e4db5

8 files changed

+13
-0
lines changed

packages/airgradient_api_d1_mini.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ switch:
3535
id: upload_airgradient
3636
restore_mode: RESTORE_DEFAULT_OFF
3737
optimistic: True
38+
entity_category: config
3839

3940
esphome:
4041
on_boot:

packages/airgradient_api_d1_mini_insecure.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ switch:
3535
id: upload_airgradient
3636
restore_mode: RESTORE_DEFAULT_OFF
3737
optimistic: True
38+
entity_category: config
3839

3940
esphome:
4041
on_boot:

packages/airgradient_api_d1_mini_no_sgp41.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ switch:
3333
id: upload_airgradient
3434
restore_mode: RESTORE_DEFAULT_OFF
3535
optimistic: True
36+
entity_category: config
3637

3738
esphome:
3839
on_boot:

packages/airgradient_api_esp32-c3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ switch:
3737
id: upload_airgradient
3838
restore_mode: RESTORE_DEFAULT_OFF
3939
optimistic: True
40+
entity_category: config
4041

4142
esphome:
4243
on_boot:

packages/airgradient_api_esp32-c3_dual_pms5003t.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ switch:
6969
id: upload_airgradient
7070
restore_mode: RESTORE_DEFAULT_ON
7171
optimistic: True
72+
entity_category: config
7273

7374
esphome:
7475
on_boot:

packages/display_sh1106_multi_page.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,3 +342,4 @@ number:
342342
then:
343343
# https://www.reddit.com/r/Esphome/comments/sy1d1s/how_to_write_a_lamba_to_change_the_contrast_of/
344344
lambda: id(oled_display).set_contrast(id(display_contrast).state / 100.0);
345+
entity_category: config

packages/led.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ light:
88
name: "LED Strip"
99
id: led_strip
1010
restore_mode: RESTORE_DEFAULT_OFF
11+
# Classify this as primary entity so that it shows up on the Home Assistant
12+
# pre-populated default dashboard so `entity_category` is intentionally not
13+
# set.
1114

1215
number:
1316
- platform: template
@@ -22,6 +25,7 @@ number:
2225
optimistic: true
2326
restore_value: true
2427
mode: slider
28+
entity_category: config
2529

2630
- platform: template
2731
# https://esphome.io/components/number/template.html
@@ -35,3 +39,4 @@ number:
3539
optimistic: true
3640
restore_value: true
3741
mode: box
42+
entity_category: config

packages/sensor_s8.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ button:
2121
- platform: template
2222
name: SenseAir CO2 Calibration
2323
id: senseair_co2_calibrate_button
24+
entity_category: config
2425
on_press:
2526
then:
2627
- senseair.background_calibration: senseair_co2
@@ -31,6 +32,7 @@ button:
3132
# Displays the current ABC interval in the ESPhome logs to verify status
3233
name: SenseAir CO2 Write Calibration Interval To Log
3334
id: senseair_co2_abc_get_period
35+
entity_category: config
3436
on_press:
3537
then:
3638
- senseair.abc_get_period: senseair_co2

0 commit comments

Comments
 (0)