Closed maxileith closed 6 months ago
The field output_devices
is currently not implemented and is therefore neither mapped in events nor in NodePyATVState
. I'll put it on my todo list, I'm assuming to have something by the beginning to mid of next week...
The problem is, that this function will return its default when passing an Object just with output_devices
, so null
for every attribute.
Then the following method will set all states to null
.
So I would consider this a bug, not an enhancement.
Oh. I'm glad you wrote again. I somehow didn't realize that the first time I read it. Yes, of course I should fix that also, so that applyStateAndEmitEvents
does not trigger any events if everything is set to null
. That would solve the problem, right?
@maxileith Both should be fixed with 7.3.0-develop.1
. Can you confirm that the fix works?
I think there is a change required, see #299. Nevertheless, I already want to thank you for the fast replies and fixes in this project.
@sebbo2002 I left a comment in #300. You may want to take a look at this. However, this feature should work either way for me. I will release a beta of my plugin and ask the author of the bug reported if it is working for him 👍🏻
:tada: This issue has been resolved in version 7.3.0-develop.3 :tada:
The release is available on:
v7.3.0-develop.3
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 7.3.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Hi @sebbo2002 ,
this Issue is related to #291. An user of my plugin @rvetere has reported the issue https://github.com/maxileith/homebridge-appletv-enhanced/issues/155. After some investigation the root cause is similar to the on reported in #291. Below is the response of
atvscript push_updates
…… which does include a line with the unexpected attribute
output_devices
which I do not think is correctly handled here: https://github.com/sebbo2002/node-pyatv/blob/60a414daeaac29c53254611ef25a54dbf671a720/src/lib/device-events.ts#L38-L52 I think it should be handled likepower_state
orvolume