mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
codestyle
This commit is contained in:
parent
5c77d71d2c
commit
c4031bef74
2 changed files with 3 additions and 5 deletions
|
@ -128,7 +128,7 @@ async def to_code(config):
|
|||
|
||||
def item_config(ebus, item, config):
|
||||
cg.add(item.set_parent(ebus))
|
||||
cg.add(ebus.add_item(item)),
|
||||
cg.add(ebus.add_item(item))
|
||||
cg.add(item.set_send_poll(config[CONF_TELEGRAM][CONF_SEND_POLL]))
|
||||
if CONF_ADDRESS in config[CONF_TELEGRAM]:
|
||||
cg.add(item.set_address(config[CONF_TELEGRAM][CONF_ADDRESS]))
|
||||
|
|
|
@ -68,9 +68,7 @@ class EbusComponent : public PollingComponent {
|
|||
void set_history_queue_size(uint8_t /*history_queue_size*/);
|
||||
void set_command_queue_size(uint8_t /*command_queue_size*/);
|
||||
|
||||
void add_item(EbusItem *item) {
|
||||
this->items_.push_back(item);
|
||||
};
|
||||
void add_item(EbusItem *item) { this->items_.push_back(item); };
|
||||
|
||||
void update() override;
|
||||
|
||||
|
|
Loading…
Reference in a new issue