Skip to content

Commit

Permalink
Release v4.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Feb 3, 2024
1 parent fa7650c commit c1ee520
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion jarvis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from multiprocessing import current_process

version = "4.4.1"
version = "4.4.2"

install_script = os.path.join(os.path.dirname(__file__), 'lib', 'install.sh')

Expand Down
16 changes: 8 additions & 8 deletions jarvis/executors/lights.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,25 @@ def avail_check(self, function_to_call: Callable) -> None:
"""
status = ThreadPool(processes=1).apply_async(func=self.thread_worker, args=(function_to_call,))
speaker.speak(run=True) # Speak the initial response when the work is happening behind the scenes
failed_msg, failed = [], None
try:
failed = status.get(5)
except ThreadTimeout as error:
logger.error(error)
failed_msg.append(support.pluralize(count=len(self.mapping), word="light", to_words=True, cap_word=True))
return
if failed:
failed_msg = []
for light_location, ip_list in failed.items():
if failed_msg:
msg = f'{support.pluralize(count=len(ip_list), word="light", to_words=True)} '
else:
msg = f'{support.pluralize(count=len(ip_list), word="light", to_words=True, cap_word=True)} '
failed_msg.append(msg + f'from {light_location}')
if len(failed_msg) == 1 and failed_msg[0].startswith('One'): # Failed only on a single lamp
response = "".join(failed_msg) + " isn't available right now!"
else:
response = util.comma_separator(list_=failed_msg) + " aren't available right now!"
logger.error(response)
speaker.speak(text=f"I'm sorry {models.env.title}! {response}")
if len(failed_msg) == 1 and failed_msg[0].startswith('One'): # Failed only on a single lamp
response = "".join(failed_msg) + " isn't available right now!"
else:
response = util.comma_separator(list_=failed_msg) + " aren't available right now!"
logger.error(response)
speaker.speak(text=f"I'm sorry {models.env.title}! {response}")


def lights(phrase: str) -> None:
Expand Down
8 changes: 6 additions & 2 deletions release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
Release Notes
=============

v4.4.2 (02/03/2024)
-------------------
- Bug fix on flaky response when all the lights fail to connect

v4.4.1 (02/01/2024)
-------------------
- Support upgraded VPN server configuration
- Minor improvements to one-time passcode settings
- Crash fix VPN server config and adapt to new changes
- Minor improvements in one-time passcode settings

v4.4 (11/30/2023)
-----------------
Expand Down

0 comments on commit c1ee520

Please sign in to comment.