mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	fix clang tidy
This commit is contained in:
		| @@ -45,7 +45,7 @@ void Logger::pre_setup() { | |||||||
|       case UART_SELECTION_USB_CDC: |       case UART_SELECTION_USB_CDC: | ||||||
|         uart_dev = DEVICE_DT_GET_OR_NULL(DT_NODELABEL(cdc_acm_uart0)); |         uart_dev = DEVICE_DT_GET_OR_NULL(DT_NODELABEL(cdc_acm_uart0)); | ||||||
|         if (device_is_ready(uart_dev)) { |         if (device_is_ready(uart_dev)) { | ||||||
|           usb_enable(NULL); |           usb_enable(nullptr); | ||||||
|         } |         } | ||||||
|         break; |         break; | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -63,7 +63,7 @@ class EntityBase { | |||||||
|   EntityCategory entity_category_{ENTITY_CATEGORY_NONE}; |   EntityCategory entity_category_{ENTITY_CATEGORY_NONE}; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| class EntityBase_DeviceClass { | class EntityBase_DeviceClass {  // NOLINT(readability-identifier-naming) | ||||||
|  public: |  public: | ||||||
|   /// Get the device class, using the manual override if set. |   /// Get the device class, using the manual override if set. | ||||||
|   std::string get_device_class(); |   std::string get_device_class(); | ||||||
| @@ -74,7 +74,7 @@ class EntityBase_DeviceClass { | |||||||
|   const char *device_class_{nullptr};  ///< Device class override |   const char *device_class_{nullptr};  ///< Device class override | ||||||
| }; | }; | ||||||
|  |  | ||||||
| class EntityBase_UnitOfMeasurement { | class EntityBase_UnitOfMeasurement {  // NOLINT(readability-identifier-naming) | ||||||
|  public: |  public: | ||||||
|   /// Get the unit of measurement, using the manual override if set. |   /// Get the unit of measurement, using the manual override if set. | ||||||
|   std::string get_unit_of_measurement(); |   std::string get_unit_of_measurement(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user