fix: follow new default-mode esphome 2023.4

This commit is contained in:
deejaybeam
2023-04-24 17:55:36 +02:00
parent 32f297353a
commit 8ca88755c1

View File

@@ -703,6 +703,7 @@ switch:
entity_category: config
restore_state: true
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
##### Confirmation Message #####
- name: ${device_name} Confirmation Message
@@ -718,6 +719,7 @@ switch:
id: relay_1
pin:
number: 22
restore_mode: RESTORE_DEFAULT_OFF
##### PHYSICAL SWITCH 2 ######
- name: ${device_name} Relay 2
@@ -725,6 +727,7 @@ switch:
id: relay_2
pin:
number: 19
restore_mode: RESTORE_DEFAULT_OFF
##### DISPLAY ALWAYS ON #####
- name: ${device_name} Screen Power
@@ -746,6 +749,7 @@ switch:
restore_state: true
assumed_state: false
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
on_turn_off:
- lambda: id(disp1).send_command_printf("home.sleepmodus.val=0");
- globals.set:
@@ -766,6 +770,7 @@ switch:
entity_category: config
restore_state: true
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
- name: ${device_name} Relay 2 Local Fallback
platform: template
@@ -773,6 +778,7 @@ switch:
entity_category: config
restore_state: true
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
##### START - NUMBER CONFIGURATION #####
number: