mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
[radio_frequency] Inline the trivial make_call helper
This commit is contained in:
@@ -81,8 +81,6 @@ void RadioFrequency::dump_config() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RadioFrequencyCall RadioFrequency::make_call() { return RadioFrequencyCall(this); }
|
|
||||||
|
|
||||||
uint32_t RadioFrequency::get_capability_flags() const {
|
uint32_t RadioFrequency::get_capability_flags() const {
|
||||||
uint32_t flags = 0;
|
uint32_t flags = 0;
|
||||||
if (this->traits_.get_supports_transmitter())
|
if (this->traits_.get_supports_transmitter())
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ class RadioFrequency : public Component, public EntityBase, public remote_base::
|
|||||||
const RadioFrequencyTraits &get_traits() const { return this->traits_; }
|
const RadioFrequencyTraits &get_traits() const { return this->traits_; }
|
||||||
|
|
||||||
/// Create a call object for transmitting
|
/// Create a call object for transmitting
|
||||||
RadioFrequencyCall make_call();
|
RadioFrequencyCall make_call() { return RadioFrequencyCall(this); }
|
||||||
|
|
||||||
/// Get capability flags for this radio frequency instance
|
/// Get capability flags for this radio frequency instance
|
||||||
uint32_t get_capability_flags() const;
|
uint32_t get_capability_flags() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user