mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 09:08:41 +00:00
add bit layout comment to configure_entity unpacking
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
67ba4bd386
commit
ceee1378db
@@ -43,6 +43,8 @@ void EntityBase::configure_entity(const char *name, uint32_t object_id_hash, uin
|
||||
this->calc_object_id_();
|
||||
}
|
||||
}
|
||||
// Unpack entity string table indices.
|
||||
// Packed: [23..16] icon | [15..8] UoM | [7..0] device_class (each 8 bits)
|
||||
#ifdef USE_ENTITY_DEVICE_CLASS
|
||||
this->device_class_idx_ = entity_strings_packed & 0xFF;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user