Add MAWAQIT integration#167919
Open
moha-tah wants to merge 163 commits into
Open
Conversation
needs to be tested
…nce of mawaqit is setup need to be tested
This commit refactors the storage handling in the mawaqit component. It introduces a new function, cleare_storage_entry. The previous code that used write_one_element is replaced with calls to cleare_storage_entry. Additionally, some docstrings where updated
…d test data saving approach, achieved 100% test coverage for config_flow.py, and removed obsolete tests
… 100% coverage in config_flow, addressing feature in issue home-assistant#38
…ded translations and descriptions for user navigation
…Added error translations for ar, fr, de, du, en, and tr
…anslations as done; set discovery-update-info and discovery as exempt
Yeyvo
approved these changes
Jun 26, 2026
…ntation parameters
…eys for exceptions and updating quality scale status in YAML. Add new strings for authentication and network errors.
…waqit integration
* Updating methods to accept session parameter. * Update Mawaqit integration requirements to version 1.0.13 * Update inject-websession status to 'done' in quality_scale.yaml for Mawaqit integration * Verify injected session is forwarded in wrapper tests Update the mawaqit_wrapper client-creation tests to pass an explicit session and assert it is forwarded to AsyncMawaqitClient, keeping the inject-websession code paths fully covered. * Cover remaining mawaqit sensor and types branches Add a direct unit test for NextPrayerSensor.native_value with an unhandled description key and a display_name test exercising each branch, bringing the integration to full statement coverage. * Regenerate requirements_all.txt for mawaqit 1.0.13 * Update quality scale for Mawaqit integration from gold to platinum and mark strict-typing as done in quality_scale.yaml * change lat-long type from str to float * Regenerate mypy.ini for mawaqit strict-typing * Add missing type annotations for mawaqit strict-typing Annotate previously untyped functions in utils, mawaqit_wrapper, config_flow, sensor and types so the integration passes the strict mypy profile now enabled for platinum quality scale. * Rename date params to avoid shadowing datetime.date pylint redefined-outer-name: the date parameters in time_with_timezone and compute_islamic_midnight shadowed the imported datetime.date. ---------
d99ef36 to
336678e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking change
Proposed change
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: