Skip to content

Commit

Permalink
Update feeder.py
Browse files Browse the repository at this point in the history
trying again
  • Loading branch information
jsb2092 authored Sep 30, 2024
1 parent ec36a1f commit 2b4cd20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/petlibro/devices/feeders/feeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


UNITS = {
1: "cup",
1: "cups",
2: "oz",
3: "g",
4: "mL"
Expand Down Expand Up @@ -66,4 +66,4 @@ def convert_unit(self, value: int) -> int:
"""
if self.unit_id:
return float('%.2f'%(value)) * UNITS_RATIO.get(self.unit_id, 1)
return '%.2f'%(value)
return float('%.2f'%(value))

0 comments on commit 2b4cd20

Please sign in to comment.