Skip to content

Commit

Permalink
fixed missing id in renameLight function
Browse files Browse the repository at this point in the history
  • Loading branch information
blockiindahood committed Nov 2, 2024
1 parent 2a823b3 commit ee5a57c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/Lights.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class Lights extends ApiDefinition {
* Renames a Light on the Bridge to the specified name in the Light instance.
*/
renameLight(light: LightsType): Promise<boolean> {
return this.execute(lightsApi.setLightAttributes, {id: light, light: light});
return this.execute(lightsApi.setLightAttributes, {id: light.id, light: light});
}

// /**
Expand Down

0 comments on commit ee5a57c

Please sign in to comment.