Skip to content

Commit

Permalink
aloow flag entities not to register, test for emsesp#891
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Jan 6, 2023
1 parent ad49267 commit 7bb3581
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/emsdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,9 @@ void EMSdevice::add_device_value(uint8_t tag,
// get Mask
uint8_t mask = Helpers::hextoint(entity_id.substr(0, 2).c_str());
state = mask << 4; // set state high bits to flag, turn off active and ha flags
if (mask & 0x80) {
return;
}
// see if there is a custom name in the entity string
if (has_custom_name) {
custom_fullname = entity_id.substr(custom_name_pos + 1);
Expand Down

0 comments on commit 7bb3581

Please sign in to comment.