Misc cleanups (#15907)
* device_tracker.huawei_router: Pylint logging-not-lazy fix * sensor.irish_rail_transport: Clean up redundant self.info testpull/15922/head
parent
f98629b895
commit
1911168855
|
@ -85,8 +85,7 @@ class HuaweiDeviceScanner(DeviceScanner):
|
|||
active_clients = [client for client in data if client.state]
|
||||
self.last_results = active_clients
|
||||
|
||||
# pylint: disable=logging-not-lazy
|
||||
_LOGGER.debug("Active clients: " + "\n"
|
||||
_LOGGER.debug("Active clients: %s", "\n"
|
||||
.join((client.mac + " " + client.name)
|
||||
for client in active_clients))
|
||||
return True
|
||||
|
|
|
@ -164,7 +164,7 @@ class IrishRailTransportData:
|
|||
ATTR_TRAIN_TYPE: train.get('type')}
|
||||
self.info.append(train_data)
|
||||
|
||||
if not self.info or not self.info:
|
||||
if not self.info:
|
||||
self.info = self._empty_train_data()
|
||||
|
||||
def _empty_train_data(self):
|
||||
|
|
Loading…
Reference in New Issue