Skip to content

Commit

Permalink
style: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 19, 2024
1 parent 91cde9d commit 0b15cf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ async def _refresh_if_no_audiopush(already_refreshed=False):
already_refreshed = True
elif "volumeSetting" in player_state:
_LOGGER.debug(
"%s: %s volume updated: player_state[\"volumeSetting\"]: %s",
'%s: %s volume updated: player_state["volumeSetting"]: %s',
hide_email(self._login.email),
self.name,
player_state["volumeSetting"],
Expand Down Expand Up @@ -1130,11 +1130,11 @@ async def async_set_volume_level(self, volume):
"""Set volume level, range 0..1."""
if not self.available:
return

# Save the curent volume level before we change it
_LOGGER.debug("Saving previous volume level: %s", self.volume_level)
self._previous_volume = self.volume_level

# Change the volume level on the device
if self.hass:
self.hass.async_create_task(self.alexa_api.set_volume(volume))
Expand Down

0 comments on commit 0b15cf6

Please sign in to comment.