Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Var type changed
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 1, 2024
1 parent 500865f commit 2a24624
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/esp32_ble_presense/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ async def to_code(config):
cg.add(var.set_time(time_))

await automation.build_automation(
var.on_update(), [(cg.std_string, "id"), (cg.int32_t, "rssi"), (cg.uint32_t, "timestamp")], config[CONF_ON_UPDATE]
var.on_update(), [(cg.std_string, "id"), (cg.int8, "rssi"), (cg.uint32, "timestamp")], config[CONF_ON_UPDATE]
)
4 changes: 2 additions & 2 deletions components/esp32_ble_presense/esp32_ble_presense.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ class ESP32_BLE_Presense : public esphome::PollingComponent,
this->rtc = rtc;
}

Trigger<std::string, int32_t, uint32_t> *on_update() const { return this->on_update_trigger_; }
Trigger<std::string, int8_t, uint32_t> *on_update() const { return this->on_update_trigger_; }

ESP32_BLE_Presense(const ESP32_BLE_Presense&) = delete;
ESP32_BLE_Presense& operator=(const ESP32_BLE_Presense&) = delete;

protected:
Trigger<std::string, int32_t, uint32_t> *on_update_trigger_ = new Trigger<std::string, int, uint32_t>();
Trigger<std::string, int8_t, uint32_t> *on_update_trigger_ = new Trigger<std::string, int8_t, uint32_t>();

friend class BleAdvertisedDeviceCallbacks;
void reportDevice(const std::string& mac_address,
Expand Down

0 comments on commit 2a24624

Please sign in to comment.