SamsungTV fails to work after update to 0.43.1

Morning All

It seems there are dependencies missing to the python modules for the SamsungTV component post upgrade to 0.43.1

Python websocket library is missing from the virtual home assistant environment

I installed this using the following method:
$ sudo systemctl stop [email protected]
$ sudo su -s /bin/bash homeassistant
$ source /srv/homeassistant/bin/activate
$ pip3 install websocket

This fixes the missing library reference however there are other missing references quoted in the home-assistant.log file:
File ā€œ/home/homeassistant/.homeassistant/deps/samsungctl/remote_websocket.pyā€, line 21, in init
self.connection = websocket.WebSocket()
TypeError: init() missing 3 required positional arguments: ā€˜environā€™, ā€˜socketā€™, and ā€˜rfileā€™

Iā€™m curious if anyone has got the samsungtv component working with the current HA build?

Cheers
Craig

websocket-client python module is a requirement for some models, this is stated in the componentā€™s page (see model KS8005 line). If you have another model perhaps itā€™s wise to add it to the list on the component page and note the requirement.

to install:

pip3 install websocket-client

Thanks Kirichkov, I have a D7000 model Samsung, Iā€™ll amend the wiki to include that ā€œpip3 install websocket-clientā€ is needed for that model

1 Like