mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	preen
This commit is contained in:
		| @@ -12,7 +12,7 @@ void CopySelect::setup() { | ||||
|   traits.set_options(source_->traits.get_options()); | ||||
|  | ||||
|   if (source_->has_state()) | ||||
|     this->publish_state(source_->current_option()); | ||||
|     this->publish_state(source_->active_index().value()); | ||||
| } | ||||
|  | ||||
| void CopySelect::dump_config() { LOG_SELECT("", "Copy Select", this); } | ||||
|   | ||||
| @@ -5,7 +5,7 @@ namespace ld2450 { | ||||
|  | ||||
| void BaudRateSelect::control(const std::string &value) { | ||||
|   this->publish_state(value); | ||||
|   this->parent_->set_baud_rate(state); | ||||
|   this->parent_->set_baud_rate(value); | ||||
| } | ||||
|  | ||||
| }  // namespace ld2450 | ||||
|   | ||||
| @@ -5,7 +5,7 @@ namespace ld2450 { | ||||
|  | ||||
| void ZoneTypeSelect::control(const std::string &value) { | ||||
|   this->publish_state(value); | ||||
|   this->parent_->set_zone_type(state); | ||||
|   this->parent_->set_zone_type(value); | ||||
| } | ||||
|  | ||||
| }  // namespace ld2450 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user