mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
check device active for fetching values
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user