mirror of
https://github.com/alexhopeoconnor/arduino-home-assistant.git
synced 2026-10-20 01:41:29 +10:00
HASelect improvements (#221)
* added getCurrentOption method to the HASelect * final fixes, tests * added support for publishing None state in the HASelect * update select.ino * update docs
This commit is contained in:
@@ -28,6 +28,15 @@ bool HASerializerArray::add(ItemType item)
|
||||
return true;
|
||||
}
|
||||
|
||||
const char* HASerializerArray::getItem(const uint8_t index) const
|
||||
{
|
||||
if (index < 0 || index >= _itemsNb) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return _items[index];
|
||||
}
|
||||
|
||||
uint16_t HASerializerArray::calculateSize() const
|
||||
{
|
||||
uint16_t size =
|
||||
|
||||
Reference in New Issue
Block a user