Exclude 'TAXI' product (fixes #8401) (#8438)

pull/8435/merge
Fabian Affolter 2017-07-11 21:23:23 +02:00 committed by Pascal Vizeli
parent fbf945c18b
commit 5b4862cc3c
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
(product_id not in wanted_product_ids): (product_id not in wanted_product_ids):
continue continue
dev.append(UberSensor('time', timeandpriceest, product_id, product)) 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( dev.append(UberSensor(
'price', timeandpriceest, product_id, product)) 'price', timeandpriceest, product_id, product))