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

@@ -111,6 +111,10 @@ class EMSdevice {
return brand_;
}
inline void active(bool active) {
active_ = active;
}
// set custom device name
inline void custom_name(std::string const & custom_name) {
custom_name_ = custom_name;
@@ -487,6 +491,7 @@ class EMSdevice {
std::string custom_name_ = ""; // custom name
uint8_t flags_ = 0;
uint8_t brand_ = Brand::NO_BRAND;
bool active_ = true;
bool ha_config_done_ = false;
bool has_update_ = false;