mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Fix rounding of attributes in Habitica integration (#131772)
This commit is contained in:
parent
2fc01a02db
commit
c9dde419a2
@ -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