Skip to content

Commit

Permalink
Add model_id to device_info for all exposed entities
Browse files Browse the repository at this point in the history
  • Loading branch information
klejejs committed Aug 9, 2024
1 parent a86584f commit 74578c6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def device_info(self):
"name": self.coordinator.data.heat_pumps[self.idx].name,
"manufacturer": "Thermia",
"model": self.coordinator.data.heat_pumps[self.idx].model,
"model_id": self.coordinator.data.heat_pumps[self.idx].model_id,
}

@property
Expand Down
1 change: 1 addition & 0 deletions custom_components/thermia/sensors/active_alarms_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def device_info(self):
"name": self.coordinator.data.heat_pumps[self.idx].name,
"manufacturer": "Thermia",
"model": self.coordinator.data.heat_pumps[self.idx].model,
"model_id": self.coordinator.data.heat_pumps[self.idx].model_id,
}

@property
Expand Down
1 change: 1 addition & 0 deletions custom_components/thermia/sensors/generic_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def device_info(self):
"name": self.coordinator.data.heat_pumps[self.idx].name,
"manufacturer": "Thermia",
"model": self.coordinator.data.heat_pumps[self.idx].model,
"model_id": self.coordinator.data.heat_pumps[self.idx].model_id,
}

@property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def device_info(self):
"name": self.coordinator.data.heat_pumps[self.idx].name,
"manufacturer": "Thermia",
"model": self.coordinator.data.heat_pumps[self.idx].model,
"model_id": self.coordinator.data.heat_pumps[self.idx].model_id,
}

@property
Expand Down
1 change: 1 addition & 0 deletions custom_components/thermia/switches/hot_water_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def device_info(self):
"name": self.coordinator.data.heat_pumps[self.idx].name,
"manufacturer": "Thermia",
"model": self.coordinator.data.heat_pumps[self.idx].model,
"model_id": self.coordinator.data.heat_pumps[self.idx].model_id,
}

@property
Expand Down
1 change: 1 addition & 0 deletions custom_components/thermia/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def device_info(self):
"name": self.coordinator.data.heat_pumps[self.idx].name,
"manufacturer": "Thermia",
"model": self.coordinator.data.heat_pumps[self.idx].model,
"model_id": self.coordinator.data.heat_pumps[self.idx].model_id,
}

@property
Expand Down

0 comments on commit 74578c6

Please sign in to comment.