mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 18:27:51 +00:00
Convert valve position to int for Shelly BLU TRV (#136912)
This commit is contained in:
parent
76570b5144
commit
1c4ddb36d5
@ -208,7 +208,7 @@ RPC_NUMBERS: Final = {
|
|||||||
method_params_fn=lambda idx, value: {
|
method_params_fn=lambda idx, value: {
|
||||||
"id": idx,
|
"id": idx,
|
||||||
"method": "Trv.SetPosition",
|
"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)
|
removal_condition=lambda config, _status, key: config[key].get("enable", True)
|
||||||
is True,
|
is True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user