Skip to content

Commit 02480d1

Browse files
committed
code cleanup
1 parent a3ce3ef commit 02480d1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: custom_components/spotcast/spotify_controller.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ def callback(*_):
121121
def quick_play(self, **kwargs):
122122
"""
123123
Launches the spotify controller and returns when it's ready.
124-
To actually play media, another application using spotify connect is required.
124+
To actually play media, another application using spotify
125+
connect is required.
125126
"""
126127
self.access_token = kwargs["access_token"]
127128
self.expires = kwargs["expires"]
@@ -132,4 +133,6 @@ def getSpotifyDeviceID(self) -> str:
132133
"""
133134
Retrieve the Spotify deviceID from provided chromecast info
134135
"""
135-
return hashlib.md5(self.castDevice.cast_info.friendly_name.encode()).hexdigest()
136+
return hashlib.md5(
137+
self.castDevice.cast_info.friendly_name.encode()
138+
).hexdigest()

0 commit comments

Comments
 (0)