check device active for fetching values

This commit is contained in:
MichaelDvP
2024-10-03 13:23:19 +02:00
parent 1eaa16995b
commit cd4d0f5abe
4 changed files with 28 additions and 12 deletions

View File

@@ -323,6 +323,9 @@ std::string EMSdevice::to_string_short() {
// for each telegram that has the fetch value set (true) do a read request
void EMSdevice::fetch_values() {
if (!active_) {
return;
}
#if defined(EMSESP_DEBUG)
EMSESP::logger().debug("Fetching values for deviceID 0x%02X", device_id());
#endif