diff --git a/src/emsdevice.cpp b/src/emsdevice.cpp index 4f62a72fb..6ec5dc314 100644 --- a/src/emsdevice.cpp +++ b/src/emsdevice.cpp @@ -352,7 +352,7 @@ void EMSdevice::toggle_fetch(uint16_t telegram_id, bool toggle) { } // get status of automatic fetch for a telegram id -bool EMSdevice::get_toggle_fetch(uint16_t telegram_id) { +bool EMSdevice::is_fetch(uint16_t telegram_id) { for (auto & tf : telegram_functions_) { if (tf.telegram_type_id_ == telegram_id) { return tf.fetch_; diff --git a/src/emsdevice.h b/src/emsdevice.h index 38cc4f25c..28eef9f22 100644 --- a/src/emsdevice.h +++ b/src/emsdevice.h @@ -294,7 +294,7 @@ class EMSdevice { void fetch_values(); void toggle_fetch(uint16_t telegram_id, bool toggle); - bool get_toggle_fetch(uint16_t telegram_id); + bool is_fetch(uint16_t telegram_id); bool ha_config_done() const { return ha_config_done_;