Skip to content

Commit

Permalink
Update sensor.py device_info
Browse files Browse the repository at this point in the history
  • Loading branch information
disforw authored Aug 28, 2023
1 parent 7b7242d commit e4aae19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/eyeonwater/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ def __init__(
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self.meter.meter_uuid)},
name=f"{WATER_METER_NAME} {self.meter.meter_id}",
model=self.meter.meter_info.reading.model,
manufacturer=self.meter.meter_info.reading.customer_name,
hw_version=self.meter.meter_info.reading.hardware_version,
sw_version=self.meter.meter_info.reading.firmware_version,
)
self._last_historical_data: list[DataPoint] = []
self._last_imported_time = last_imported_time
Expand Down

0 comments on commit e4aae19

Please sign in to comment.