You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is curiously missing from its definition file IPSOObject.d.ts
Also - any reason why the cloned objects (e.g. Groups) found in e.g. tradfri.groups[] collection are not linked back to the client they sit under? Linking is done after cloning to the emitted copies.
The text was updated successfully, but these errors were encountered:
Ah, I see - link(client: OperationProvider): this; was tagged as @internal on 8 January 2018 replacing the comment 'INTERNAL USE ONLY'
So it looks like your intention for the simplified API is that it should only be used on the objects emitted by the events, not on the ones found in tradfri.devices[], tradfri.groups[] etc
As a new user, VSCode lead me into trying to use
tradfri.groups[131075].group.turnOn()
but that gives the runtime error that the object is 'not linked to a client instance' which seems surprising at the time since it came directly from the client if you see what I mean.
As a new user, VSCode lead me into trying to use ...
This might be a valid thing to do nonetheless. I'll let you know if that is something that should be supported.
AlCalzone
changed the title
Missing link(client) from IPSOObject.d.ts
Investigate if all device objects should be linked to the client instance by default
Jul 29, 2019
link(client: OperationProvider): this;
is curiously missing from its definition file IPSOObject.d.ts
Also - any reason why the cloned objects (e.g. Groups) found in e.g. tradfri.groups[] collection are not linked back to the client they sit under? Linking is done after cloning to the emitted copies.
The text was updated successfully, but these errors were encountered: