From 5b4862cc3c07d82f9333dfdff8b90b13dce3a82e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 11 Jul 2017 21:23:23 +0200 Subject: [PATCH] Exclude 'TAXI' product (fixes #8401) (#8438) --- homeassistant/components/sensor/uber.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/uber.py b/homeassistant/components/sensor/uber.py index a971ca94287..17ce1036244 100644 --- a/homeassistant/components/sensor/uber.py +++ b/homeassistant/components/sensor/uber.py @@ -59,7 +59,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None): (product_id not in wanted_product_ids): continue dev.append(UberSensor('time', timeandpriceest, product_id, product)) - if product.get('price_details') is not None: + + if product.get('price_details') is not None \ + and product['display_name'] != 'TAXI': dev.append(UberSensor( 'price', timeandpriceest, product_id, product))