Skip to content

Commit

Permalink
Fix linting problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Liborsaf committed Apr 6, 2024
1 parent 458fdaf commit 96b8f06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sonyapilib/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ def _parse_dmr(self, data):
transport_location = service.find(
f"{URN_UPNP_DEVICE}controlURL").text

self.rendering_control_url = f"{lirc_url.scheme}://{lirc_url.netloc.split(':')[0]}" \
self.rendering_control_url = \
f"{lirc_url.scheme}://{lirc_url.netloc.split(':')[0]}" \
f":{self.dmr_port}{transport_location}"

# print(self.rendering_control_url)
Expand Down Expand Up @@ -764,7 +765,7 @@ def get_playing_status(self):

def get_volume(self):
"""Get device volume."""
data = f"""<m:GetVolume xmlns:m="urn:schemas-upnp-org:service:RenderingControl:1">
data = """<m:GetVolume xmlns:m="urn:schemas-upnp-org:service:RenderingControl:1">
<InstanceID>0</InstanceID>
<Channel>Master</Channel>
</m:GetVolume>"""
Expand Down

0 comments on commit 96b8f06

Please # to comment.