summaryrefslogtreecommitdiff
path: root/smart_home/chromecasts.py
diff options
context:
space:
mode:
Diffstat (limited to 'smart_home/chromecasts.py')
-rw-r--r--smart_home/chromecasts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/smart_home/chromecasts.py b/smart_home/chromecasts.py
index bd2a80c..bec8461 100644
--- a/smart_home/chromecasts.py
+++ b/smart_home/chromecasts.py
@@ -38,7 +38,7 @@ class BaseChromecast(dev.Device):
BaseChromecast.ccasts,
BaseChromecast.browser,
) = pychromecast.get_chromecasts(timeout=15.0)
- assert BaseChromecast.browser
+ assert BaseChromecast.browser is not None
atexit.register(BaseChromecast.browser.stop_discovery)
BaseChromecast.refresh_ts = now