Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with enigma2 after upgrade to 2024.2.3 during media turn off #111261

Closed
03397 opened this issue Feb 24, 2024 · 6 comments
Closed

Problem with enigma2 after upgrade to 2024.2.3 during media turn off #111261

03397 opened this issue Feb 24, 2024 · 6 comments

Comments

@03397
Copy link

03397 commented Feb 24, 2024

The problem

I cannot use the media turn off service to set my enigma2 device to standby.
This used to work just fine before 2024.2.3

What version of Home Assistant Core has the issue?

2024.2.3

What was the last working version of Home Assistant Core?

2024.2.2

What type of installation are you running?

Home Assistant Container

Integration causing the issue

enigma2

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:485
First occurred: 8:40:31 AM (1 occurrences)
Last logged: 8:40:31 AM

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'OpenWebIfDevice' object has no attribute 'set_powerstate'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 485, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 723, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 685, in _async_run_long_action
    return long_task.result()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2279, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2316, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 892, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 962, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/enigma2/media_player.py", line 156, in async_turn_off
    await self._device.set_powerstate(PowerState.STANDBY)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'OpenWebIfDevice' object has no attribute 'set_powerstate'

Additional information

No response

@03397 03397 changed the title Provblem with enigma2 after upgrade to 2024.2.3 Problem with enigma2 after upgrade to 2024.2.3 during media turn off Feb 24, 2024
@home-assistant
Copy link

Hey there @autinerd, mind taking a look at this issue as it has been labeled with an integration (enigma2) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of enigma2 can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign enigma2 Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


enigma2 documentation
enigma2 source
(message by IssueLinks)

@autinerd
Copy link
Contributor

Oh, thanks! The problem is, that #107462 was put into the release but not #110676, which is needed (it's my fault, I forgot to specify it in the PR dsescription)
It should be fixed in the next release, when the other PR is put into the release as well.

@perseus177
Copy link

Same problem

@rira2005
Copy link

Fehler beim Aufrufen des Diensts media_player/toggle. 'OpenWebIfDevice' object has no attribute 'set_powerstate'
Same Problem Here!

@bs76
Copy link

bs76 commented Feb 26, 2024

Same issue here

@autinerd autinerd mentioned this issue Feb 26, 2024
@balloob
Copy link
Member

balloob commented Feb 26, 2024

Closed in #110676

@balloob balloob closed this as completed Feb 26, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants