From 7ff2af6fe7bffea90dc4a31c93140c189917c659 Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 2 Feb 2022 13:47:36 -0800 Subject: Let's be explicit with asserts; there was a bug in histogram caused by assert foo when foo was an int with valid valid 0. --- smart_home/chromecasts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smart_home/chromecasts.py') 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 -- cgit v1.3