| 17 | #include <unistd.h> |
| 18 | |
| 19 | ButtonEntity::ButtonEntity(uint32_t light_id) { |
| 20 | this->_id = light_id; |
| 21 | this->reload_config(); |
| 22 | |
| 23 | CommandManager::attach_callback(boost::bind(&ButtonEntity::command_callback, this, _1)); |
| 24 | |
| 25 | SPDLOG_DEBUG("Button {}::{} base loaded.", this->_id, this->_name); |
| 26 | } |
| 27 | |
| 28 | uint16_t ButtonEntity::get_room_id() { |
| 29 | return this->_room_id; |
nothing calls this directly
no test coverage detected