Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions homeassistant/components/device_tracker/huawei_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ def _update_info(self):
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
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/sensor/irish_rail_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def update(self):
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):
Expand Down