Skip to content

Commit

Permalink
fix counter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Lysov committed Sep 7, 2023
1 parent f0bd5a0 commit 7905389
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/sst_cloud/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/sergeylysov/sst_cloud/issues",
"requirements": ["requests","requests"],
"version": "0.1.26",
"version": "0.1.27",
"zeroconf": []
}
7 changes: 6 additions & 1 deletion custom_components/sst_cloud/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ def __init__(self,counter: sst.Counter, module: sst.LeakModule):

@property
def device_info(self):
return {"identifiers": {(DOMAIN, self._module.get_device_id)}, "default_name": "Water Meter",}
return {"identifiers": {(DOMAIN, self._module.get_device_id)},
"name": "Water Meter",
"sw_version": "none",
"model": "Neptun Smart",
"manufacturer": "SST",
}

@property
def icon(self):
Expand Down

0 comments on commit 7905389

Please sign in to comment.