Skip to content

Commit

Permalink
Merge pull request #174 from custom-components/amount-should-be-float
Browse files Browse the repository at this point in the history
amount should be float
  • Loading branch information
isabellaalstrom authored Jan 26, 2022
2 parents 21a22f2 + b3dfe71 commit a85e86b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/grocy/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
vol.Schema(
{
vol.Required(SERVICE_PRODUCT_ID): vol.Coerce(int),
vol.Required(SERVICE_AMOUNT): vol.Coerce(int),
vol.Required(SERVICE_AMOUNT): vol.Coerce(float),
vol.Optional(SERVICE_PRICE): str,
}
)
Expand All @@ -45,7 +45,7 @@
vol.Schema(
{
vol.Required(SERVICE_PRODUCT_ID): vol.Coerce(int),
vol.Required(SERVICE_AMOUNT): vol.Coerce(int),
vol.Required(SERVICE_AMOUNT): vol.Coerce(float),
vol.Optional(SERVICE_SPOILED): bool,
vol.Optional(SERVICE_TRANSACTION_TYPE): str,
}
Expand Down

0 comments on commit a85e86b

Please sign in to comment.