Skip to content

Commit

Permalink
Merge pull request #22 from AaronDavidSchneider/fix_IO
Browse files Browse the repository at this point in the history
fix IO for speaker info
  • Loading branch information
AaronDavidSchneider authored Apr 15, 2021
2 parents 91b5da6 + 0563363 commit ff40e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sonos_alarm/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ async def async_update(self, now=None):
] = self.alarm.include_linked_zones
self._is_available = True

speaker_info = self._soco.get_speaker_info(True)
speaker_info = await self.hass.async_add_executor_job(lambda: self._soco.get_speaker_info(True))
self._name = "Sonos Alarm {} {} {}".format(
speaker_info["zone_name"],
self.alarm.recurrence.title(),
Expand Down

0 comments on commit ff40e97

Please sign in to comment.