Convert valve position to int for Shelly BLU TRV (#136912)

This commit is contained in:
Maciej Bieniek
2025-01-30 14:16:51 +01:00
committed by GitHub
parent 76570b5144
commit 1c4ddb36d5

View File

@@ -208,7 +208,7 @@ RPC_NUMBERS: Final = {
method_params_fn=lambda idx, value: {
"id": idx,
"method": "Trv.SetPosition",
"params": {"id": 0, "pos": value},
"params": {"id": 0, "pos": int(value)},
},
removal_condition=lambda config, _status, key: config[key].get("enable", True)
is True,