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

Volume argument must be an integer #7

Open
jjwBullfrog opened this issue Nov 15, 2019 · 0 comments
Open

Volume argument must be an integer #7

jjwBullfrog opened this issue Nov 15, 2019 · 0 comments

Comments

@jjwBullfrog
Copy link

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
Screen Shot 2019-11-14 at 6 21 51 PM

Component/platform:
Onkyo

Description of problem:

Got this error when adjusting the volume slider.

Thu Nov 14 2019 17:54:42 GMT-0600 (Central Standard Time)
argument must be an int, or have a fileno() method.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 133, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1236, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1261, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
self._platforms.values(), func, call, service_name, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 348, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 372, in _handle_service_platform_call
await func(entity, data)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/onkyo/media_player.py", line 355, in set_volume_level
f"volume {int(volume * (self._max_volume / 100) * self._receiver_max_volume)}"
File "/usr/src/homeassistant/homeassistant/components/onkyo/media_player.py", line 244, in command
result = self._receiver.command(command)
File "/usr/local/lib/python3.7/site-packages/eiscp/core.py", line 480, in command
response = self.raw(iscp_message)
File "/usr/local/lib/python3.7/site-packages/eiscp/core.py", line 464, in raw
while self.get(False):
File "/usr/local/lib/python3.7/site-packages/eiscp/core.py", line 443, in get
ready = select.select([self.command_socket], [], [], timeout or 0)
TypeError: argument must be an int, or have a fileno() method.

Expected:

Problem-relevant configuration.yaml entries and steps to reproduce:
media_player:

  • platform: onkyo
    host: 192.168.1.76
    name: 'Pioneer Receiver'
    max_volume: 100
    receiver_max_volume: 164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant