refactor: remove inner number type conversion in attr calculate.

This commit is contained in:
sususweet
2025-11-27 21:39:07 +08:00
parent 7fee90b1fd
commit 266419e3a9
4 changed files with 7 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ DEVICE_MAPPING = {
"get": [
{
"lvalue": "[b7_vbattery]",
"rvalue": "[b7_vbatt] / 1000.0"
"rvalue": "float([b7_vbatt] / 1000.0)"
},
],
},