From e824c553ca72c2b6de0197ae515486d32785e8a2 Mon Sep 17 00:00:00 2001 From: Steven Rollason <2099542+gadgetchnnel@users.noreply.github.com> Date: Thu, 4 Jul 2019 00:48:01 +0100 Subject: [PATCH] Fix exclusion of routes with excl_filter (#24928) Fix exclusion of routes with excl_filter (was including instead of excluding) --- homeassistant/components/waze_travel_time/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/waze_travel_time/sensor.py b/homeassistant/components/waze_travel_time/sensor.py index af0014d24b3..5a925623b90 100644 --- a/homeassistant/components/waze_travel_time/sensor.py +++ b/homeassistant/components/waze_travel_time/sensor.py @@ -254,7 +254,7 @@ class WazeTravelTimeData(): if self.exclude is not None: routes = {k: v for k, v in routes.items() if - self.exclude.lower() in k.lower()} + self.exclude.lower() not in k.lower()} route = sorted(routes, key=(lambda key: routes[key][0]))[0]