mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
Consolidate test files where all tests are identical (#6690)
This commit is contained in:
28
tests/components/globals/common.yaml
Normal file
28
tests/components/globals/common.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- globals.set:
|
||||
id: glob_int
|
||||
value: "10"
|
||||
|
||||
globals:
|
||||
- id: glob_int
|
||||
type: int
|
||||
restore_value: true
|
||||
initial_value: "0"
|
||||
- id: glob_float
|
||||
type: float
|
||||
restore_value: true
|
||||
initial_value: "0.0f"
|
||||
- id: glob_bool
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "true"
|
||||
- id: glob_string
|
||||
type: std::string
|
||||
restore_value: false
|
||||
# initial_value: ""
|
||||
- id: glob_bool_processed
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "false"
|
@@ -1,28 +1 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- globals.set:
|
||||
id: glob_int
|
||||
value: "10"
|
||||
|
||||
globals:
|
||||
- id: glob_int
|
||||
type: int
|
||||
restore_value: true
|
||||
initial_value: "0"
|
||||
- id: glob_float
|
||||
type: float
|
||||
restore_value: true
|
||||
initial_value: "0.0f"
|
||||
- id: glob_bool
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "true"
|
||||
- id: glob_string
|
||||
type: std::string
|
||||
restore_value: false
|
||||
# initial_value: ""
|
||||
- id: glob_bool_processed
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "false"
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,28 +1 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- globals.set:
|
||||
id: glob_int
|
||||
value: "10"
|
||||
|
||||
globals:
|
||||
- id: glob_int
|
||||
type: int
|
||||
restore_value: true
|
||||
initial_value: "0"
|
||||
- id: glob_float
|
||||
type: float
|
||||
restore_value: true
|
||||
initial_value: "0.0f"
|
||||
- id: glob_bool
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "true"
|
||||
- id: glob_string
|
||||
type: std::string
|
||||
restore_value: false
|
||||
# initial_value: ""
|
||||
- id: glob_bool_processed
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "false"
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,28 +1 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- globals.set:
|
||||
id: glob_int
|
||||
value: "10"
|
||||
|
||||
globals:
|
||||
- id: glob_int
|
||||
type: int
|
||||
restore_value: true
|
||||
initial_value: "0"
|
||||
- id: glob_float
|
||||
type: float
|
||||
restore_value: true
|
||||
initial_value: "0.0f"
|
||||
- id: glob_bool
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "true"
|
||||
- id: glob_string
|
||||
type: std::string
|
||||
restore_value: false
|
||||
# initial_value: ""
|
||||
- id: glob_bool_processed
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "false"
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,28 +1 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- globals.set:
|
||||
id: glob_int
|
||||
value: "10"
|
||||
|
||||
globals:
|
||||
- id: glob_int
|
||||
type: int
|
||||
restore_value: true
|
||||
initial_value: "0"
|
||||
- id: glob_float
|
||||
type: float
|
||||
restore_value: true
|
||||
initial_value: "0.0f"
|
||||
- id: glob_bool
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "true"
|
||||
- id: glob_string
|
||||
type: std::string
|
||||
restore_value: false
|
||||
# initial_value: ""
|
||||
- id: glob_bool_processed
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "false"
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,28 +1 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- globals.set:
|
||||
id: glob_int
|
||||
value: "10"
|
||||
|
||||
globals:
|
||||
- id: glob_int
|
||||
type: int
|
||||
restore_value: true
|
||||
initial_value: "0"
|
||||
- id: glob_float
|
||||
type: float
|
||||
restore_value: true
|
||||
initial_value: "0.0f"
|
||||
- id: glob_bool
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "true"
|
||||
- id: glob_string
|
||||
type: std::string
|
||||
restore_value: false
|
||||
# initial_value: ""
|
||||
- id: glob_bool_processed
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "false"
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,28 +1 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- globals.set:
|
||||
id: glob_int
|
||||
value: "10"
|
||||
|
||||
globals:
|
||||
- id: glob_int
|
||||
type: int
|
||||
restore_value: true
|
||||
initial_value: "0"
|
||||
- id: glob_float
|
||||
type: float
|
||||
restore_value: true
|
||||
initial_value: "0.0f"
|
||||
- id: glob_bool
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "true"
|
||||
- id: glob_string
|
||||
type: std::string
|
||||
restore_value: false
|
||||
# initial_value: ""
|
||||
- id: glob_bool_processed
|
||||
type: bool
|
||||
restore_value: false
|
||||
initial_value: "false"
|
||||
<<: !include common.yaml
|
||||
|
Reference in New Issue
Block a user