Pylint cleanups (#15626)

* Pylint 2 no-else-return fixes

* Remove unneeded abstract-class-not-used pylint disable
This commit is contained in:
Ville Skyttä authored and Paulus Schoutsen committed 2018-07-23 10:16:05 +02:00
1 parent a38c0d6d15
commit b7c336a687
166 files changed
+425 -490

No files matched your search

+1 -2
View File
@@ -26,8 +26,7 @@ class TestNotifyGroup(unittest.TestCase):
def mock_get_service(hass, config, discovery_info=None):
if config['name'] == 'demo1':
return self.service1
else:
return self.service2
return self.service2
with assert_setup_component(2), \
patch.object(demo, 'get_service', mock_get_service):