mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	fix climate_ir on receive optional (#897)
* fix climate on receive optional * add climate tests
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							6433da13a3
						
					
				
				
					commit
					0f406c38eb
				
			| @@ -51,6 +51,9 @@ class ClimateIR : public climate::Climate, public Component, public remote_base: | ||||
|   /// Transmit via IR the state of this climate controller. | ||||
|   virtual void transmit_state() = 0; | ||||
|  | ||||
|   // Dummy implement on_receive so implementation is optional for inheritors | ||||
|   bool on_receive(remote_base::RemoteReceiveData data) override { return false; }; | ||||
|  | ||||
|   bool supports_cool_{true}; | ||||
|   bool supports_heat_{true}; | ||||
|   bool supports_dry_{false}; | ||||
|   | ||||
| @@ -1154,6 +1154,11 @@ climate: | ||||
|     sensor: my_sensor | ||||
|   - platform: coolix | ||||
|     name: Coolix Climate | ||||
|   - platform: fujitsu_general | ||||
|     name: Fujitsu General Climate | ||||
|   - platform: yashima | ||||
|     name: Yashima Climate | ||||
|  | ||||
|  | ||||
| switch: | ||||
|   - platform: gpio | ||||
|   | ||||
		Reference in New Issue
	
	Block a user