mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-29 22:24:26 +00:00 
			
		
		
		
	[kamstrup_kmp] Fix clang-tidy sign comparison errors (#11055)
This commit is contained in:
		| @@ -22,7 +22,7 @@ void KamstrupKMPComponent::dump_config() { | ||||
|   LOG_SENSOR("  ", "Flow", this->flow_sensor_); | ||||
|   LOG_SENSOR("  ", "Volume", this->volume_sensor_); | ||||
|  | ||||
|   for (int i = 0; i < this->custom_sensors_.size(); i++) { | ||||
|   for (size_t i = 0; i < this->custom_sensors_.size(); i++) { | ||||
|     LOG_SENSOR("  ", "Custom Sensor", this->custom_sensors_[i]); | ||||
|     ESP_LOGCONFIG(TAG, "    Command: 0x%04X", this->custom_commands_[i]); | ||||
|   } | ||||
| @@ -268,7 +268,7 @@ void KamstrupKMPComponent::set_sensor_value_(uint16_t command, float value, uint | ||||
|   } | ||||
|  | ||||
|   // Custom sensors | ||||
|   for (int i = 0; i < this->custom_commands_.size(); i++) { | ||||
|   for (size_t i = 0; i < this->custom_commands_.size(); i++) { | ||||
|     if (command == this->custom_commands_[i]) { | ||||
|       this->custom_sensors_[i]->publish_state(value); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user