Skip to content

Commit

Permalink
Update api_renpho.py
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebou12 committed Mar 5, 2024
1 parent fc2849d commit 65fd8c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/renpho/api_renpho.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ async def get_measurements(self):
_LOGGER.error(f"Failed to fetch weight measurements: {e}")
return None

async def get_weight(self) -> Union[float, None]:
async def get_weight(self):
if self.weight and self.weight_info:
return self.weight, self.weight_info
self._last_updated_weight = time.time()
Expand Down

0 comments on commit 65fd8c9

Please sign in to comment.