From 00f436f33f3d1678325973f6ff681b2c27f6b5a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Poczkodi?= Date: Sat, 19 Oct 2024 23:54:33 +0200 Subject: [PATCH] fix namespace --- esphome/components/si4713_i2c/number/number.h | 4 ++-- esphome/components/si4713_i2c/output/output.h | 4 ++-- esphome/components/si4713_i2c/select/select.h | 4 ++-- esphome/components/si4713_i2c/si4713.cpp | 4 ++-- esphome/components/si4713_i2c/si4713.h | 4 ++-- esphome/components/si4713_i2c/si4713defs.h | 4 ++-- esphome/components/si4713_i2c/si4713sub.h | 4 ++-- esphome/components/si4713_i2c/switch/switch.h | 4 ++-- esphome/components/si4713_i2c/text/text.h | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/esphome/components/si4713_i2c/number/number.h b/esphome/components/si4713_i2c/number/number.h index 6b99b2673c..41381f10f7 100644 --- a/esphome/components/si4713_i2c/number/number.h +++ b/esphome/components/si4713_i2c/number/number.h @@ -4,7 +4,7 @@ #include "../si4713.h" namespace esphome { -namespace si4713 { +namespace si4713_i2c { class AcompGainNumber : public number::Number, public Parented { protected: @@ -150,5 +150,5 @@ class TunerPowerNumber : public number::Number, public Parented } }; -} // namespace si4713 +} // namespace si4713_i2c } // namespace esphome diff --git a/esphome/components/si4713_i2c/output/output.h b/esphome/components/si4713_i2c/output/output.h index 26de5297a5..1ab2a3a3ae 100644 --- a/esphome/components/si4713_i2c/output/output.h +++ b/esphome/components/si4713_i2c/output/output.h @@ -5,7 +5,7 @@ #include "../si4713.h" namespace esphome { -namespace si4713 { +namespace si4713_i2c { class BinaryOutput : public output::BinaryOutput, public Component, public Parented { public: @@ -17,5 +17,5 @@ class BinaryOutput : public output::BinaryOutput, public Component, public Paren uint8_t pin_{0}; }; -} // namespace si4713 +} // namespace si4713_i2c } // namespace esphome diff --git a/esphome/components/si4713_i2c/select/select.h b/esphome/components/si4713_i2c/select/select.h index 0ead282e25..4a7eb0ec26 100644 --- a/esphome/components/si4713_i2c/select/select.h +++ b/esphome/components/si4713_i2c/select/select.h @@ -4,7 +4,7 @@ #include "../si4713.h" namespace esphome { -namespace si4713 { +namespace si4713_i2c { class AcompAttackSelect : public select::Select, public Parented { protected: @@ -106,5 +106,5 @@ class RefClkSourceSelect : public select::Select, public Parented namespace esphome { -namespace si4713 { +namespace si4713_i2c { // TODO: std::clamp isn't here yet #define clamp(v, lo, hi) std::max(std::min(v, hi), lo) @@ -843,5 +843,5 @@ void Si4713Component::measure_freq(float value) { // this->stc_wait(); // does not work, locks up, hmm } -} // namespace si4713 +} // namespace si4713_i2c } // namespace esphome diff --git a/esphome/components/si4713_i2c/si4713.h b/esphome/components/si4713_i2c/si4713.h index bd12d01c19..63f1d5df9c 100644 --- a/esphome/components/si4713_i2c/si4713.h +++ b/esphome/components/si4713_i2c/si4713.h @@ -16,7 +16,7 @@ #include "si4713sub.h" namespace esphome { -namespace si4713 { +namespace si4713_i2c { class Si4713Component : public PollingComponent, public i2c::I2CDevice { std::string chip_id_; @@ -183,5 +183,5 @@ template class MeasureFrequencyAction : public Action, pu void play(Ts... x) override { this->parent_->measure_freq(this->frequency_.value(x...)); } }; -} // namespace si4713 +} // namespace si4713_i2c } // namespace esphome diff --git a/esphome/components/si4713_i2c/si4713defs.h b/esphome/components/si4713_i2c/si4713defs.h index 7bb4171351..407a5e2349 100644 --- a/esphome/components/si4713_i2c/si4713defs.h +++ b/esphome/components/si4713_i2c/si4713defs.h @@ -1,7 +1,7 @@ #pragma once namespace esphome { -namespace si4713 { +namespace si4713_i2c { static const float FREQ_MIN = 76; static const float FREQ_MAX = 108; @@ -1284,5 +1284,5 @@ struct PropTxRdsFifoSize : PropBase { } }; -} // namespace si4713 +} // namespace si4713_i2c } // namespace esphome diff --git a/esphome/components/si4713_i2c/si4713sub.h b/esphome/components/si4713_i2c/si4713sub.h index 5d9844b257..f73ac9976a 100644 --- a/esphome/components/si4713_i2c/si4713sub.h +++ b/esphome/components/si4713_i2c/si4713sub.h @@ -1,7 +1,7 @@ #pragma once namespace esphome { -namespace si4713 { +namespace si4713_i2c { #ifndef SUB_TEXT #define SUB_TEXT(name) \ @@ -53,5 +53,5 @@ namespace si4713 { void publish_##name##_text_sensor() { this->publish(this->name##_text_sensor_, this->get_##name##_text_sensor()); } \ std::string get_##name##_text_sensor(); -} // namespace si4713 +} // namespace si4713_i2c } // namespace esphome diff --git a/esphome/components/si4713_i2c/switch/switch.h b/esphome/components/si4713_i2c/switch/switch.h index a4d015b604..d5956fb340 100644 --- a/esphome/components/si4713_i2c/switch/switch.h +++ b/esphome/components/si4713_i2c/switch/switch.h @@ -4,7 +4,7 @@ #include "../si4713.h" namespace esphome { -namespace si4713 { +namespace si4713_i2c { class AcompEnableSwitch : public switch_::Switch, public Parented { protected: @@ -99,5 +99,5 @@ class TunerEnableSwitch : public switch_::Switch, public Parented { protected: @@ -22,5 +22,5 @@ class RDSTextText : public text::Text, public Parented { } }; -} // namespace si4713 +} // namespace si4713_i2c } // namespace esphome