mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Fix custom mode_state_topic (#2827)
This commit is contained in:
		| @@ -213,7 +213,7 @@ async def setup_climate_core_(var, config): | |||||||
|         if CONF_MODE_COMMAND_TOPIC in config: |         if CONF_MODE_COMMAND_TOPIC in config: | ||||||
|             cg.add(mqtt_.set_custom_mode_command_topic(config[CONF_MODE_COMMAND_TOPIC])) |             cg.add(mqtt_.set_custom_mode_command_topic(config[CONF_MODE_COMMAND_TOPIC])) | ||||||
|         if CONF_MODE_STATE_TOPIC in config: |         if CONF_MODE_STATE_TOPIC in config: | ||||||
|             cg.add(mqtt_.set_custom_state_topic(config[CONF_MODE_STATE_TOPIC])) |             cg.add(mqtt_.set_custom_mode_state_topic(config[CONF_MODE_STATE_TOPIC])) | ||||||
|  |  | ||||||
|         if CONF_SWING_MODE_COMMAND_TOPIC in config: |         if CONF_SWING_MODE_COMMAND_TOPIC in config: | ||||||
|             cg.add( |             cg.add( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user