Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
Fix flake8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
belak committed May 10, 2017
1 parent 964b4d3 commit 6584278
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mopidy_gmusic/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,18 @@ def on_start(self):
self.config['gmusic']['deviceid'])

if not self.config['gmusic']['deviceid']:
logger.warn('There is no gmusic deviceid set. Mopidy will fall back to the MAC address of this device. Registered devices are listed below.')
logger.warn('There is no gmusic deviceid set. '
'Falling back to the MAC address of this device. '
'Registered devices are listed below.')
for device in self.session.api.get_registered_devices():
deviceid = device['id']
if deviceid.startswith('ios:'):
deviceid = deviceid[4:]
elif deviceid.startswith('0x'):
deviceid = deviceid[2:]
logger.info('Name: %s, ID: %s', device.get('friendlyName', 'Unknown Device'), deviceid)
logger.info('Name: %s, ID: %s',
device.get('friendlyName', 'Unknown Device'),
deviceid)

# wait a few seconds to let mopidy settle
# then refresh google music content asynchronously
Expand Down

0 comments on commit 6584278

Please sign in to comment.