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

KeyError: 'volume' #40

Closed
kuradi opened this issue Sep 21, 2020 · 4 comments
Closed

KeyError: 'volume' #40

kuradi opened this issue Sep 21, 2020 · 4 comments

Comments

@kuradi
Copy link

kuradi commented Sep 21, 2020

Describe the bug
Basically all is working what im expect but logs are flooded with errors.

Expected behavior
If applicable, a clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment details:

  • Environment (HASSIO, Raspbian, etc): hassio
  • Home Assistant version installed: 0.115.2
  • Component version installed: latest
  • Last know working version: tba
  • TV model: UE50TU7172UXXH

Output of HA logs

2020-09-22 02:10:51 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.tvsamsung fails


Traceback (most recent call last):


  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state


    await self.async_device_update()


  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 469, in async_device_update


    await self.async_update()  # type: ignore


  File "/config/custom_components/samsungtv_smart/media_player.py", line 617, in async_update


    await self._st.async_device_update(use_channel_info)


  File "/config/custom_components/samsungtv_smart/api/smartthings.py", line 326, in async_device_update


    device_volume = data["main"]["volume"]["value"]


KeyError: 'volume'


Additional context
Add any other context about the problem here.

@ollo69
Copy link
Owner

ollo69 commented Sep 22, 2020

Do you have some external device connected like soundbar to play audio?

@kuradi
Copy link
Author

kuradi commented Sep 25, 2020

yes, im using external audio via digital audio output.

ollo69 added a commit that referenced this issue Sep 26, 2020
- Fixed smartthings error when some device information are unaivailable (issue #40)
@ollo69
Copy link
Owner

ollo69 commented Sep 26, 2020

This should be fixed with last release

@ollo69
Copy link
Owner

ollo69 commented Oct 10, 2021

Closing this issue due to inactivity from long time.

@ollo69 ollo69 closed this as completed Oct 10, 2021
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

2 participants