mirror of
https://github.com/esphome/esphome.git
synced 2026-08-23 06:36:23 +00:00
[radio_frequency] Inline the trivial make_call helper (#18645)
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 flags = 0;
|
||||
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_; }
|
||||
|
||||
/// Create a call object for transmitting
|
||||
RadioFrequencyCall make_call();
|
||||
RadioFrequencyCall make_call() { return RadioFrequencyCall(this); }
|
||||
|
||||
/// Get capability flags for this radio frequency instance
|
||||
uint32_t get_capability_flags() const;
|
||||
|
||||
Reference in New Issue
Block a user