Repository navigation
Add MQTT support and improve localization for Temperature ETA plugin - #126
Conversation
- Introduced new messages for MQTT-related functionality, including entity announcements and discovery settings. - Enhanced existing translations for clarity and consistency across various settings. - Updated the user interface to reflect changes in MQTT configuration options and added new messages for real-time status updates. - Improved overall localization by adding missing translations and refining existing ones for better user experience.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Compatibility | 7 medium 3 high |
| BestPractice | 2 medium |
| ErrorProne | 2 critical 11 high |
| Performance | 1 medium |
| Security | 6 high |
| CodeStyle | 1 minor |
🟢 Metrics 250 complexity · 0 duplication
Metric Results Complexity 250 Duplication 0
🔴 Coverage 95.91% diff coverage · -1.07% coverage variation
Metric Results Coverage variation ❌ -1.07% coverage variation (-1.00%) Diff coverage ✅ 95.91% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (ab2579a) 1500 1434 95.60% Head commit (684502a) 1847 (+347) 1746 (+312) 94.53% (-1.07%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#126) 489 469 95.91% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This pull request introduces a major refactor of the MQTT settings and publishing logic for the TempETA plugin, focusing on improving consistency, usability, and compatibility with Home Assistant. The changes unify the MQTT topic structure, migrate settings to a new format, enhance Home Assistant integration, and update the codebase to use a shared MQTT settings module. The documentation and translation infrastructure are also updated to reflect these improvements.
MQTT Settings and Topic Structure Refactor:
Home Assistant and Documentation Improvements:
Shared Code and Asset Management:
temp_eta-mqtt.jsmodule for the MQTT settings tab, ensuring consistency with related plugins and excluding it from formatting to maintain byte-identical copies. [1] [2]Translation and Extraction Support:
babel.cfgconfiguration to extract translation strings from the shared MQTT module, ensuring all status texts are translatable.Plugin Lifecycle and API Enhancements:
ShutdownPlugininterface to ensure proper cleanup and status updates on shutdown, and exposes improved MQTT status information via the API. [1] [2] [3]Checklist
pytest)pre-commit run --all-files)permissions:and avoidpull_request_targetunless strictly necessary