From 8da18795993acecf723486fbad3853c3a24b9871 Mon Sep 17 00:00:00 2001 From: Jonathan Keljo Date: Sat, 17 Aug 2019 19:32:01 -0700 Subject: [PATCH] Fix background crash in sisyphus integration (#26032) I think I was thinking in another language, since this was not valid Python. Result was that the thread that maintained the SocketIO connection to the table would die early on, so no status updates were actually flowing from the table. --- homeassistant/components/sisyphus/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sisyphus/__init__.py b/homeassistant/components/sisyphus/__init__.py index 09fcda7f8c8..771641c9b1d 100644 --- a/homeassistant/components/sisyphus/__init__.py +++ b/homeassistant/components/sisyphus/__init__.py @@ -35,7 +35,7 @@ async def async_setup(hass, config): """Filters out excessively verbose logs from SocketIO.""" def filter(self, record): - if record.msg.contains("waiting for connection"): + if "waiting for connection" in record.msg: return False return True