Open ScottG489 opened 11 months ago
Hey there @ctalkington, mind taking a look at this issue as it has been labeled with an integration (roku
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
roku documentation roku source (message by IssueLinks)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Still relevant.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Still relevant.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Still relevant.
The problem
When calling the
remote.send_command
service on a rokuremote
entity, and specifying adelay_secs
, it will be ignored and there will be no delay.You can see it just isn't implemented here: homeassistant/components/roku/remote.py#L63.
An example of how it is implemented elsewhere: homeassistant/components/broadlink/remote.py#L242
I'd be willing to implement this. I think it would roughly look like this:
Looking for feedback.
Background
I found this issue when trying to run commands quickly in succession using
num_repeats
. However, it may also just be a problem when making multiple service calls quickly. It seems they would happen out of order or some would be missed. Didn't investigate too closely.While I think the Roku
remote.send_command
implementation should implementdelay_secs
regardless, I think this indicates a problem with the underlying Roku calls. Ideally the underlying requests to Roku should be made synchronously so they can't be made out of order or whatever is happening. In other words, the requested remote command should be sent and we should wait for confirmation that it's actually complete. Perhaps we are already doing this and this is a problem with Roku itself, but it's something to consider.What version of Home Assistant Core has the issue?
core-2023.10.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
roku
Link to integration documentation on our website
https://www.home-assistant.io/integrations/roku/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response