diff --git a/homeassistant/components/device_tracker/huawei_router.py b/homeassistant/components/device_tracker/huawei_router.py index 804269e6228..f5e4fa8a714 100644 --- a/homeassistant/components/device_tracker/huawei_router.py +++ b/homeassistant/components/device_tracker/huawei_router.py @@ -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 diff --git a/homeassistant/components/sensor/irish_rail_transport.py b/homeassistant/components/sensor/irish_rail_transport.py index 5febebeec87..38fd910260a 100644 --- a/homeassistant/components/sensor/irish_rail_transport.py +++ b/homeassistant/components/sensor/irish_rail_transport.py @@ -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):