mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-29 22:24:26 +00:00 
			
		
		
		
	Add some components to the new testing framework (S part 2) (#6227)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										38
									
								
								tests/components/sun/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								tests/components/sun/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| wifi: | ||||
|   ssid: MySSID | ||||
|   password: password1 | ||||
|  | ||||
| api: | ||||
|  | ||||
| time: | ||||
|   - platform: homeassistant | ||||
|     id: homeassistant_time | ||||
|  | ||||
| sun: | ||||
|   latitude: 48.8584° | ||||
|   longitude: 2.2945° | ||||
|   on_sunrise: | ||||
|     - then: | ||||
|         - logger.log: Good morning | ||||
|     - elevation: 5° | ||||
|       then: | ||||
|         - logger.log: Good morning again | ||||
|   on_sunset: | ||||
|     - then: | ||||
|         - logger.log: Good evening | ||||
|  | ||||
| sensor: | ||||
|   - platform: sun | ||||
|     name: Sun Elevation | ||||
|     type: elevation | ||||
|   - platform: sun | ||||
|     name: Sun Azimuth | ||||
|     type: azimuth | ||||
|  | ||||
| text_sensor: | ||||
|   - platform: sun | ||||
|     name: Sun Next Sunrise | ||||
|     type: sunrise | ||||
|   - platform: sun | ||||
|     name: Sun Next Sunset | ||||
|     type: sunset | ||||
		Reference in New Issue
	
	Block a user