Skip to content

Commit db4bf08

Browse files
authored
Fix is_alive for encrypted TVs (#145)
1 parent d70dcc1 commit db4bf08

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

samsungtvws/encrypted/remote.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,5 @@ async def close(self) -> None:
185185

186186
def is_alive(self) -> bool:
187187
return (
188-
self._connection is not None
189-
and not self._connection.state is not State.CLOSED
188+
self._connection is not None and self._connection.state is not State.CLOSED
190189
)

0 commit comments

Comments
 (0)