diff --git a/esphome/components/shtcx/shtcx.cpp b/esphome/components/shtcx/shtcx.cpp index d52bdb1257..b8daceb1af 100644 --- a/esphome/components/shtcx/shtcx.cpp +++ b/esphome/components/shtcx/shtcx.cpp @@ -12,7 +12,7 @@ static const uint16_t SHTCX_COMMAND_READ_ID_REGISTER = 0xEFC8; static const uint16_t SHTCX_COMMAND_SOFT_RESET = 0x805D; static const uint16_t SHTCX_COMMAND_POLLING_H = 0x7866; -inline const char* to_string(SHTCXType type) { +inline const char *to_string(SHTCXType type) { switch (type) { case SHTCX_TYPE_SHTC3: return "SHTC3"; diff --git a/tests/test1.yaml b/tests/test1.yaml index 2cdbbe8cff..5caa03cf03 100644 --- a/tests/test1.yaml +++ b/tests/test1.yaml @@ -544,12 +544,12 @@ sensor: address: 0x58 update_interval: 5s - platform: shtcx - temperature: - name: "Living Room Temperature 10" - humidity: - name: "Living Room Humidity 10" - address: 0x70 - update_interval: 15s + temperature: + name: "Living Room Temperature 10" + humidity: + name: "Living Room Humidity 10" + address: 0x70 + update_interval: 15s - platform: template name: "Template Sensor" id: template_sensor