Skip to content

Commit

Permalink
2.1.1 bugfix meter reading update
Browse files Browse the repository at this point in the history
  • Loading branch information
myTselection committed Jun 21, 2023
1 parent 46206d2 commit b705a37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/pixometer/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/myTselection/pixometer/issues",
"requirements": [],
"version": "2.0.1"
"version": "2.1.1"
}
1 change: 1 addition & 0 deletions custom_components/pixometer/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ async def update_meter_readings(self, meter_id):
_LOGGER.debug(f"update meter readings for {NAME} - meter id: {meter_id}")
assert meter_readings is not None
self._meter_readings[meter_id] = meter_readings.get("results")[0]
return meter_readings.get("results")[0]

@Throttle(MIN_TIME_BETWEEN_UPDATES)
async def _update(self):
Expand Down

0 comments on commit b705a37

Please sign in to comment.