mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 23:21:54 +00:00 
			
		
		
		
	`this->`
				
					
				
			This commit is contained in:
		| @@ -6,10 +6,10 @@ namespace esphome { | |||||||
|  |  | ||||||
| class Area { | class Area { | ||||||
|  public: |  public: | ||||||
|   void set_area_id(uint32_t area_id) { area_id_ = area_id; } |   void set_area_id(uint32_t area_id) { this->area_id_ = area_id; } | ||||||
|   uint32_t get_area_id() { return area_id_; } |   uint32_t get_area_id() { return this->area_id_; } | ||||||
|   void set_name(const char *name) { name_ = name; } |   void set_name(const char *name) { this->name_ = name; } | ||||||
|   const char *get_name() { return name_; } |   const char *get_name() { return this->name_; } | ||||||
|  |  | ||||||
|  protected: |  protected: | ||||||
|   uint32_t area_id_{}; |   uint32_t area_id_{}; | ||||||
|   | |||||||
| @@ -4,12 +4,12 @@ namespace esphome { | |||||||
|  |  | ||||||
| class Device { | class Device { | ||||||
|  public: |  public: | ||||||
|   void set_device_id(uint32_t device_id) { device_id_ = device_id; } |   void set_device_id(uint32_t device_id) { this->device_id_ = device_id; } | ||||||
|   uint32_t get_device_id() { return device_id_; } |   uint32_t get_device_id() { return this->device_id_; } | ||||||
|   void set_name(const char *name) { name_ = name; } |   void set_name(const char *name) { this->name_ = name; } | ||||||
|   const char *get_name() { return name_; } |   const char *get_name() { return this->name_; } | ||||||
|   void set_area_id(uint32_t area_id) { area_id_ = area_id; } |   void set_area_id(uint32_t area_id) { this->area_id_ = area_id; } | ||||||
|   uint32_t get_area_id() { return area_id_; } |   uint32_t get_area_id() { return this->area_id_; } | ||||||
|  |  | ||||||
|  protected: |  protected: | ||||||
|   uint32_t device_id_{}; |   uint32_t device_id_{}; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user