mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 01:34:18 +01:00
fix clang tidy
This commit is contained in:
parent
0c494f3650
commit
4224689f1c
2 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ void Logger::pre_setup() {
|
|||
case UART_SELECTION_USB_CDC:
|
||||
uart_dev = DEVICE_DT_GET_OR_NULL(DT_NODELABEL(cdc_acm_uart0));
|
||||
if (device_is_ready(uart_dev)) {
|
||||
usb_enable(NULL);
|
||||
usb_enable(nullptr);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ class EntityBase {
|
|||
EntityCategory entity_category_{ENTITY_CATEGORY_NONE};
|
||||
};
|
||||
|
||||
class EntityBase_DeviceClass {
|
||||
class EntityBase_DeviceClass { // NOLINT(readability-identifier-naming)
|
||||
public:
|
||||
/// Get the device class, using the manual override if set.
|
||||
std::string get_device_class();
|
||||
|
@ -74,7 +74,7 @@ class EntityBase_DeviceClass {
|
|||
const char *device_class_{nullptr}; ///< Device class override
|
||||
};
|
||||
|
||||
class EntityBase_UnitOfMeasurement {
|
||||
class EntityBase_UnitOfMeasurement { // NOLINT(readability-identifier-naming)
|
||||
public:
|
||||
/// Get the unit of measurement, using the manual override if set.
|
||||
std::string get_unit_of_measurement();
|
||||
|
|
Loading…
Reference in a new issue