1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00
This commit is contained in:
Jesse Hills
2025-06-23 09:21:29 +12:00
parent 06de58ff8b
commit 754d2874e7
2 changed files with 10 additions and 10 deletions

View File

@@ -6,10 +6,10 @@ namespace esphome {
class Area {
public:
void set_area_id(uint32_t area_id) { area_id_ = area_id; }
uint32_t get_area_id() { return area_id_; }
void set_name(const char *name) { name_ = name; }
const char *get_name() { return name_; }
void set_area_id(uint32_t area_id) { this->area_id_ = area_id; }
uint32_t get_area_id() { return this->area_id_; }
void set_name(const char *name) { this->name_ = name; }
const char *get_name() { return this->name_; }
protected:
uint32_t area_id_{};

View File

@@ -4,12 +4,12 @@ namespace esphome {
class Device {
public:
void set_device_id(uint32_t device_id) { device_id_ = device_id; }
uint32_t get_device_id() { return device_id_; }
void set_name(const char *name) { name_ = name; }
const char *get_name() { return name_; }
void set_area_id(uint32_t area_id) { area_id_ = area_id; }
uint32_t get_area_id() { return area_id_; }
void set_device_id(uint32_t device_id) { this->device_id_ = device_id; }
uint32_t get_device_id() { return this->device_id_; }
void set_name(const char *name) { this->name_ = name; }
const char *get_name() { return this->name_; }
void set_area_id(uint32_t area_id) { this->area_id_ = area_id; }
uint32_t get_area_id() { return this->area_id_; }
protected:
uint32_t device_id_{};