mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	add files
This commit is contained in:
		
							
								
								
									
										10
									
								
								tests/unit_tests/fixtures/core/config/area_id_collision.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								tests/unit_tests/fixtures/core/config/area_id_collision.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | |||||||
|  | esphome: | ||||||
|  |   name: test-collision | ||||||
|  |   area: | ||||||
|  |     id: duplicate_id | ||||||
|  |     name: Area 1 | ||||||
|  |   areas: | ||||||
|  |     - id: duplicate_id | ||||||
|  |       name: Area 2 | ||||||
|  |  | ||||||
|  | host: | ||||||
| @@ -0,0 +1,7 @@ | |||||||
|  | esphome: | ||||||
|  |   name: test-device-no-area | ||||||
|  |   devices: | ||||||
|  |     - id: test_device | ||||||
|  |       name: Test Device | ||||||
|  |  | ||||||
|  | host: | ||||||
| @@ -0,0 +1,5 @@ | |||||||
|  | esphome: | ||||||
|  |   name: test-legacy-area | ||||||
|  |   area: Living Room | ||||||
|  |  | ||||||
|  | host: | ||||||
| @@ -0,0 +1,22 @@ | |||||||
|  | esphome: | ||||||
|  |   name: test-multiple | ||||||
|  |   area: | ||||||
|  |     id: main_area | ||||||
|  |     name: Main Area | ||||||
|  |   areas: | ||||||
|  |     - id: area1 | ||||||
|  |       name: Area 1 | ||||||
|  |     - id: area2 | ||||||
|  |       name: Area 2 | ||||||
|  |   devices: | ||||||
|  |     - id: device1 | ||||||
|  |       name: Device 1 | ||||||
|  |       area_id: main_area | ||||||
|  |     - id: device2 | ||||||
|  |       name: Device 2 | ||||||
|  |       area_id: area1 | ||||||
|  |     - id: device3 | ||||||
|  |       name: Device 3 | ||||||
|  |       area_id: area2 | ||||||
|  |  | ||||||
|  | host: | ||||||
							
								
								
									
										11
									
								
								tests/unit_tests/fixtures/core/config/valid_area_device.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/unit_tests/fixtures/core/config/valid_area_device.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | |||||||
|  | esphome: | ||||||
|  |   name: test-valid-area | ||||||
|  |   areas: | ||||||
|  |     - id: bedroom_area | ||||||
|  |       name: Bedroom | ||||||
|  |   devices: | ||||||
|  |     - id: test_device | ||||||
|  |       name: Test Device | ||||||
|  |       area_id: bedroom_area | ||||||
|  |  | ||||||
|  | host: | ||||||
		Reference in New Issue
	
	Block a user