Skip to content

Commit

Permalink
fix err when device_group invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
floris-b committed Jul 31, 2021
1 parent 6ead02b commit 8712293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/lms_tts_notify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ def run(self):
)
self.force_play = event.get(CONF_FORCE_PLAY, False)

home = self._hass.states.get(self._device_group).state
if home == 'home' or self.force_play:
home = self._hass.states.get(self._device_group)
if not home or home.state == 'home' or self.force_play:
self.audio_alert()
if self._queue.empty():
self.wait_on_finished()
Expand Down
2 changes: 1 addition & 1 deletion custom_components/lms_tts_notify/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"issue_tracker": "https://github.com/floris-b/lms_tts_notify/issues",
"after_dependencies": ["media_player", "squuezebox"],
"iot_class": "local_push",
"version": "0.3.8"
"version": "0.3.9"
}

0 comments on commit 8712293

Please sign in to comment.