Skip to content

Commit

Permalink
Merge pull request #387 from tekand/update-help-requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
yozik04 authored Sep 13, 2023
2 parents cedac4f + 4c20ab2 commit 6a82adb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions paradox/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ def load(self, alt_location=None):
if valid:
setattr(self, k, v)
else:
err = "Error parsing configuration value: Invalid value for config argument {}. Allowed are: {}".format(
type(v), k, expected_value
err = "Error parsing configuration value: Invalid value for config argument {} (type {}). Allowed are in: {}".format(
k, type(v), expected_value
)
sys.stderr.write(err + "\n")
raise (Exception(err))
Expand Down
13 changes: 11 additions & 2 deletions paradox/lib/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,23 @@
"ws4py": dict(
mandatory=False, desc="the Pushbullet interface", install_name="ws4py>=0.4.2"
),
"yaml": dict(mandatory=False, desc="the IP150 connection", install_name="yaml"),
"yaml": dict(mandatory=False, desc="the IP150 connection", install_name="pyyaml>=5.2.0"),
"chump": dict(
mandatory=False, desc="the Pushover interface", install_name="chump>=1.6.0"
),
"pydbus": dict(
mandatory=False, desc="the Signal interface", install_name="pydbus>=0.6.0"
),
"pygobject": dict(
mandatory=False, desc="the Signal interface", install_name="pygobject>=3.20.0"
),
"gi": dict(mandatory=False, desc="the Signal interface", install_name="gi>=1.2"),
"pytz": dict(mandatory=False, desc="Panel time sync", install_name="pytz>=2023.3.post1"),
"mqtt": dict(mandatory=False, desc="MQTT", install_name="paho_mqtt>=1.5.0"),

"pre-commit": dict(mandatory=False, desc="Development", install_name="pre-commit"),
"flake8": dict(mandatory=False, desc="Code checker", install_name="flake8"),
"tox": dict(mandatory=False, desc="virtual env / testing", install_name="tox"),
}


Expand All @@ -65,7 +74,7 @@ def import_error_help(error):
logger.error(
"To install ALL modules required, go to the main project folder and execute:\n"
)
logger.error(" pip3 -r requirements.txt\n")
logger.error(" pip3 install -r requirements.txt\n")
logger.error(
"Take in consideration that the 'requirements.txt' file only has the most common modules enabled."
)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pushbullet.py>=0.11.0
pyserial>=3.4
pyserial-asyncio>=0.4
python-slugify>=4.0.1
pytz>=2021.3
pytz>=2023.3.post1
# Signal support
# pygobject>=3.20.0
# pydbus>=0.6.0
Expand Down

0 comments on commit 6a82adb

Please sign in to comment.