Git Product home page Git Product logo

Comments (5)

cooperaj avatar cooperaj commented on July 22, 2024

I'm getting this after installation. The logs are full of

2020-04-27 12:29:58 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.samsung_tv fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update
    await self.async_update()
  File "/config/custom_components/samsungtv_smart/media_player.py", line 546, in async_update
    await self._st.async_device_update()
  File "/config/custom_components/samsungtv_smart/api/smartthings.py", line 292, in async_device_update
    device_volume = int(device_volume) / 100
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

This is with using a smartthings token.

from ha-samsungtv-smart.

cooperaj avatar cooperaj commented on July 22, 2024

I've just commented out the relevant volume lines and manually set volume to work and it all appears to work now.

I don't know why the volume is not set in the data dict but it might be because I have a connected soundbar and have configured the audio out to digital?

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Never tried with soudbar, I will.
Anyway I will put a check on the code to avoid possible error, also because volume level from smartthings is not accurate and not used at all...

Thx.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

I close this issue because I do not receive any new feedback.

from ha-samsungtv-smart.

cooperaj avatar cooperaj commented on July 22, 2024

I pulled this update last night. Still need to check if things are working but I didn't get any immediate error logs which is good.

from ha-samsungtv-smart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.