From db4bf08bffe081a60d82742d4a9ee72a7ca92f59 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:10:09 +0100 Subject: [PATCH] Fix is_alive for encrypted TVs (#145) --- samsungtvws/encrypted/remote.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samsungtvws/encrypted/remote.py b/samsungtvws/encrypted/remote.py index 7d3b7a9..3e2b3fe 100644 --- a/samsungtvws/encrypted/remote.py +++ b/samsungtvws/encrypted/remote.py @@ -185,6 +185,5 @@ async def close(self) -> None: def is_alive(self) -> bool: return ( - self._connection is not None - and not self._connection.state is not State.CLOSED + self._connection is not None and self._connection.state is not State.CLOSED )