Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mqtt:// support for publishing retain flag #1185

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Conversation

caronc
Copy link
Owner

@caronc caronc commented Aug 23, 2024

Description:

Related issue (if applicable): #799

mqtt:// URL now supports retain=yes as a kwarg parameter supported. It defaults to no to avoid obstructing previous behavior

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • No lint errors (use flake8)
  • 100% test coverage

Testing

Anyone can help test this source code as follows:

# Create a virtual environment to work in as follows:
python3 -m venv apprise

# Change into our new directory
cd apprise

# Activate our virtual environment
source bin/activate

# Install the branch
pip install git+https://github.com/caronc/apprise.git@799-mqtt-retain-flag

# Test out the changes with the following command:
apprise -t "Test Title" -b "Test Message" "mqtt://host/topic/?retain=yes"

@caronc caronc linked an issue Aug 23, 2024 that may be closed by this pull request
Copy link

codecov bot commented Aug 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.35%. Comparing base (827db52) to head (1cf8f17).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1185   +/-   ##
=======================================
  Coverage   99.35%   99.35%           
=======================================
  Files         146      146           
  Lines       20176    20179    +3     
  Branches     3966     3967    +1     
=======================================
+ Hits        20045    20048    +3     
  Misses        121      121           
  Partials       10       10           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@caronc caronc merged commit 9addff8 into master Aug 23, 2024
14 checks passed
@caronc caronc deleted the 799-mqtt-retain-flag branch August 24, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MQTT Retain Flag
1 participant