Fix some issues for PyLint 1.7.2 (#8356)
* Fix some issues for PyLint 1.7.2 * More fixes * Revert position change for cover
This commit is contained in:
1 parent
83a5f932d1
commit
5779d64e98
66 files changed
+176
-272
No files matched your search
@@ -58,7 +58,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
continue
|
||||
dev.append(UberSensor('time', timeandpriceest, product_id, product))
|
||||
if (product.get('price_details') is not None) and \
|
||||
product['price_details']['estimate'] is not 'Metered':
|
||||
product['price_details']['estimate'] != 'Metered':
|
||||
dev.append(UberSensor(
|
||||
'price', timeandpriceest, product_id, product))
|
||||
add_devices(dev)
|
||||
|
||||
Reference in new issue
Block a user