amimof / amimof/huego

Cannot update Scene -- parameter not modifiable

未关闭
#51 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
262
派生
35
PR 合并指标
30 天内没有已合并 PR

描述

Probably related to #45 -- the `recycle` parameter is marked as `bool` without any `omit` directive. It works for creating the scene but not for updating it.

**Steps to reproduce the issue:**
1. Try to update a scene name
2. Error: parameter, recycle, is not modifiable

**Describe the results you received:**
I am implementing a terraform provider, this is the JSON:
`{"name":"Testing","recycle":false}`

`│ Error: ERROR 8 [/scenes/jeU0J-6kXNVvnnL/recycle]: "parameter, recycle, is not modifiable"`

**Describe the results you expected:**

**Hue Bridge Version**

```
"apiversion": "1.48.0",
"swversion": "1948086000",
```

**Can I help?**

I am learning go as I write this provider, if you provide me some pointers I can contribute towards the solution.

My naive solution would be adding a map to the "update" instead of using the struct so we have fine control over the elements -- but I think the solution from #45 would solve this in a better way.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。