diff --git a/tests/components/bayesian/fixtures/configuration.yaml b/tests/components/bayesian/fixtures/configuration.yaml index 56a490d4aec35..099350eaa7882 100644 --- a/tests/components/bayesian/fixtures/configuration.yaml +++ b/tests/components/bayesian/fixtures/configuration.yaml @@ -2,9 +2,9 @@ binary_sensor: - platform: bayesian prior: 0.1 observations: - - entity_id: 'switch.kitchen_lights' + - entity_id: "switch.kitchen_lights" prob_given_true: 0.6 prob_given_false: 0.2 - platform: 'state' - to_state: 'on' + platform: "state" + to_state: "on" name: test2 diff --git a/tests/components/modbus/fixtures/configuration.yaml b/tests/components/modbus/fixtures/configuration.yaml index 0a2f46b315142..0f12ac886860b 100644 --- a/tests/components/modbus/fixtures/configuration.yaml +++ b/tests/components/modbus/fixtures/configuration.yaml @@ -3,4 +3,3 @@ modbus: host: "testHost" port: 5001 name: "testModbus" - diff --git a/tests/components/rest/fixtures/configuration_top_level.yaml b/tests/components/rest/fixtures/configuration_top_level.yaml index df27e1601176f..b141dd0b176af 100644 --- a/tests/components/rest/fixtures/configuration_top_level.yaml +++ b/tests/components/rest/fixtures/configuration_top_level.yaml @@ -9,4 +9,3 @@ sensor: resource: "http://localhost" method: GET name: rollout - diff --git a/tests/components/template/fixtures/broken_configuration.yaml b/tests/components/template/fixtures/broken_configuration.yaml index 9d21081ac8730..de0c8aebd9d50 100644 --- a/tests/components/template/fixtures/broken_configuration.yaml +++ b/tests/components/template/fixtures/broken_configuration.yaml @@ -6,11 +6,12 @@ sensor: combined_sensor_energy_usage: friendly_name: Combined Sense Energy Usage unit_of_measurement: kW - value_template: '{{ ((states(''sensor.energy_usage'') | float) + (states(''sensor.energy_usage_2'') - | float)) / 1000 }}' + value_template: + "{{ ((states('sensor.energy_usage') | float) + (states('sensor.energy_usage_2') + | float)) / 1000 }}" watching_tv_in_master_bedroom: friendly_name: Watching TV in Master Bedroom - value_template: '{% if state_attr("remote.alexander_master_bedroom","current_activity") + value_template: + '{% if state_attr("remote.alexander_master_bedroom","current_activity") == "Watch TV" or state_attr("remote.alexander_master_bedroom","current_activity") == "Watch Apple TV" %}on{% else %}off{% endif %}' - diff --git a/tests/components/template/fixtures/empty_configuration.yaml b/tests/components/template/fixtures/empty_configuration.yaml index 8b137891791fe..e69de29bb2d1d 100644 --- a/tests/components/template/fixtures/empty_configuration.yaml +++ b/tests/components/template/fixtures/empty_configuration.yaml @@ -1 +0,0 @@ - diff --git a/tests/components/template/fixtures/sensor_configuration.yaml b/tests/components/template/fixtures/sensor_configuration.yaml index 8fb2ae9564fad..02c8cc373f487 100644 --- a/tests/components/template/fixtures/sensor_configuration.yaml +++ b/tests/components/template/fixtures/sensor_configuration.yaml @@ -6,18 +6,20 @@ sensor: host: 192.168.210.25 community: public accept_errors: true - value_template: '{{ ((value | int) / 1000) | float | round(3) }}' + value_template: "{{ ((value | int) / 1000) | float | round(3) }}" scan_interval: 900 - platform: template sensors: combined_sensor_energy_usage: friendly_name: Combined Sense Energy Usage unit_of_measurement: kW - value_template: '{{ ((states(''sensor.energy_usage'') | float) + (states(''sensor.energy_usage_2'') - | float)) / 1000 }}' + value_template: + "{{ ((states('sensor.energy_usage') | float) + (states('sensor.energy_usage_2') + | float)) / 1000 }}" watching_tv_in_master_bedroom: friendly_name: Watching TV in Master Bedroom - value_template: '{% if state_attr("remote.alexander_master_bedroom","current_activity") + value_template: + '{% if state_attr("remote.alexander_master_bedroom","current_activity") == "Watch TV" or state_attr("remote.alexander_master_bedroom","current_activity") == "Watch Apple TV" %}on{% else %}off{% endif %}'