mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +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 {
|
return {
|
||||||
"level": min(round(user["stats"]["lvl"] / 2), 50),
|
"level": min(floor(user["stats"]["lvl"] / 2), 50),
|
||||||
"equipment": equipment,
|
"equipment": equipment,
|
||||||
"class": class_bonus,
|
"class": class_bonus,
|
||||||
"allocated": user["stats"][attribute],
|
"allocated": user["stats"][attribute],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user