mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[core] Remove old style platform configuration (#8118)
This commit is contained in:
		| @@ -1,7 +1,8 @@ | ||||
| --- | ||||
| esphome: | ||||
|   name: test | ||||
|   platform: ESP8266 | ||||
|  | ||||
| esp8266: | ||||
|   board: d1_mini_lite | ||||
|  | ||||
| binary_sensor: | ||||
|   | ||||
| @@ -1,7 +1,8 @@ | ||||
| --- | ||||
| esphome: | ||||
|   name: test | ||||
|   platform: ESP8266 | ||||
|  | ||||
| esp8266: | ||||
|   board: d1_mini_lite | ||||
|  | ||||
| wifi: | ||||
|   | ||||
| @@ -1,7 +1,8 @@ | ||||
| --- | ||||
| esphome: | ||||
|   name: test | ||||
|   platform: ESP32 | ||||
|  | ||||
| esp32: | ||||
|   board: nodemcu-32s | ||||
|  | ||||
| deep_sleep: | ||||
|   | ||||
| @@ -1,7 +1,8 @@ | ||||
| --- | ||||
| esphome: | ||||
|   name: test | ||||
|   platform: ESP32 | ||||
|  | ||||
| esp32: | ||||
|   board: nodemcu-32s | ||||
|  | ||||
| deep_sleep: | ||||
|   | ||||
| @@ -1,7 +1,8 @@ | ||||
| --- | ||||
| esphome: | ||||
|   name: test | ||||
|   platform: ESP8266 | ||||
|  | ||||
| esp8266: | ||||
|   board: d1_mini_lite | ||||
|  | ||||
| sensor: | ||||
|   | ||||
| @@ -1,7 +1,8 @@ | ||||
| --- | ||||
| esphome: | ||||
|   name: test | ||||
|   platform: ESP8266 | ||||
|  | ||||
| esp8266: | ||||
|   board: d1_mini_lite | ||||
|  | ||||
| text_sensor: | ||||
|   | ||||
| @@ -12,7 +12,7 @@ esphome: | ||||
|   # not overwritten by vars in the !include above | ||||
|   name: ${name} | ||||
|   name_add_mac_suffix: true | ||||
|   platform: esp8266 | ||||
|   board: !include {file: includes/scalar.yaml, vars: {var1: nodemcu}} | ||||
|  | ||||
|   libraries: !include {file: includes/list.yaml, vars: {var1: Wire}} | ||||
|  | ||||
| esp8266: | ||||
|   board: !include {file: includes/scalar.yaml, vars: {var1: nodemcu}} | ||||
|   | ||||
| @@ -12,7 +12,7 @@ esphome: | ||||
|   # not overwritten by vars in the !include above | ||||
|   name: ${name} | ||||
|   name_add_mac_suffix: true | ||||
|   platform: esp8266 | ||||
|   board: !include {file: includes/scalar.yaml, vars: {var1: nodemcu}} | ||||
|  | ||||
|   libraries: !include {file: includes/list.yaml, vars: {var1: Wire}} | ||||
|  | ||||
| esp8266: | ||||
|   board: !include {file: includes/scalar.yaml, vars: {var1: nodemcu}} | ||||
|   | ||||
| @@ -10,7 +10,7 @@ def test_include_with_vars(fixture_path): | ||||
|     substitutions.do_substitution_pass(actual, None) | ||||
|     assert actual["esphome"]["name"] == "original" | ||||
|     assert actual["esphome"]["libraries"][0] == "Wire" | ||||
|     assert actual["esphome"]["board"] == "nodemcu" | ||||
|     assert actual["esp8266"]["board"] == "nodemcu" | ||||
|     assert actual["wifi"]["ssid"] == "my_custom_ssid" | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user