mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Fix rounding of attributes in Habitica integration (#131772)
This commit is contained in:
parent
f61a5b78cc
commit
bf4d6d2029
@ -174,7 +174,7 @@ def get_attribute_points(
|
||||
)
|
||||
|
||||
return {
|
||||
"level": min(round(user["stats"]["lvl"] / 2), 50),
|
||||
"level": min(floor(user["stats"]["lvl"] / 2), 50),
|
||||
"equipment": equipment,
|
||||
"class": class_bonus,
|
||||
"allocated": user["stats"][attribute],
|
||||
|
Loading…
x
Reference in New Issue
Block a user