Skip to content

Commit

Permalink
Fix restore_state which was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
EverythingSmartHome committed Jul 19, 2023
1 parent e0353c7 commit 6735f82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions everything-presence-one-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ switch:
disabled_by_default: True
entity_category: config
optimistic: true
restore_state: true
restore_mode: RESTORE_DEFAULT_ON
turn_on_action:
- uart.write: "sensorStart"
- delay: 1s
Expand All @@ -167,7 +167,6 @@ switch:
entity_category: config
internal: ${uart_presence_output_disabled}
optimistic: true
restore_state: true
turn_on_action:
- switch.turn_off: mmwave_sensor
- delay: 1s
Expand All @@ -191,7 +190,6 @@ switch:
entity_category: config
internal: ${uart_target_output_disabled}
optimistic: true
restore_state: true
assumed_state: false
restore_mode: ALWAYS_ON
turn_on_action:
Expand Down
6 changes: 2 additions & 4 deletions everything-presence-one-st.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ switch:
id: "mmwave_sensor"
entity_category: config
optimistic: true
restore_state: true
restore_mode: RESTORE_DEFAULT_ON
turn_on_action:
- uart.write: "sensorStart"
- delay: 1s
Expand All @@ -135,7 +135,7 @@ switch:
id: "mmwave_led"
entity_category: config
optimistic: true
restore_state: true
restore_mode: RESTORE_DEFAULT_OFF
turn_on_action:
- switch.turn_off: mmwave_sensor
- delay: 1s
Expand All @@ -159,7 +159,6 @@ switch:
entity_category: config
internal: ${uart_presence_output_disabled}
optimistic: true
restore_state: true
turn_on_action:
- switch.turn_off: mmwave_sensor
- delay: 1s
Expand All @@ -183,7 +182,6 @@ switch:
entity_category: config
internal: ${uart_target_output_disabled}
optimistic: true
restore_state: true
assumed_state: false
turn_on_action:
- switch.turn_off: mmwave_sensor
Expand Down

0 comments on commit 6735f82

Please sign in to comment.