mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix exclusion of routes with excl_filter (#24928)
Fix exclusion of routes with excl_filter (was including instead of excluding)
This commit is contained in:
parent
2634f35b4e
commit
e824c553ca
@ -254,7 +254,7 @@ class WazeTravelTimeData():
|
|||||||
|
|
||||||
if self.exclude is not None:
|
if self.exclude is not None:
|
||||||
routes = {k: v for k, v in routes.items() if
|
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]
|
route = sorted(routes, key=(lambda key: routes[key][0]))[0]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user