Ape / samsungctl

Remote control Samsung televisions via a TCP/IP connection
MIT License
713 stars 191 forks source link

Restore Remote object context manager support #21

Closed Ape closed 7 years ago

Ape commented 7 years ago

Seems like #19 broke the context manager (with statements / __enter__ + __exit__) support for Remote objects. This PR restores the support and uses the with statement again in __main__.py.

@nunofgs @kylerw Could you test that the websocket feature still works with this patch?

kylerw commented 7 years ago

@Ape appears to be working fine for me with this patch.