You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: drop integration_blueprint placeholder attribution (jsonplaceholder URL) - #910
ATTRIBUTION in const.py still holds the placeholder from the integration_blueprint template:
ATTRIBUTION="Data provided by http://jsonplaceholder.typicode.com/"
Bermuda never contacts that site. The string is only used as the attribution attribute on every entity (entity.py), so each Bermuda entity currently credits an unrelated placeholder API. Security scanners that read the shipped code also flag it as an unencrypted (http://) endpoint, which makes the integration look like it sends data off the machine when it doesn't.
This PR replaces it with "Data provided by Bermuda BLE Trilateration". The constant name and its use in entity.py are unchanged.
Behavior change
None beyond the text of the attribution state attribute.
Testing
grep -rn jsonplaceholder finds nothing in the repo after the change.
ruff format --check passes on the changed file. ruff check (pinned 0.17.4) reports the same 3 findings on const.py with and without this change; they are on unrelated lines.
Summary by CodeRabbit
Bug Fixes
Corrected the data provider attribution so it identifies Bermuda BLE Trilateration. This updates the attribution displayed with the integration’s data and replaces the previous, unrelated provider reference.
This updates the attribution text shown on entities so it no longer points to an unrelated placeholder site. It does not change functionality, and the merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title says the PR drops the integration_blueprint placeholder attribution that pointed to jsonplaceholder. The changeset does exactly that: ATTRIBUTION in const.py changes from the jsonplaceholder…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title says the PR drops the integration_blueprint placeholder attribution that pointed to jsonplaceholder. The changeset does exactly that: ATTRIBUTION in const.py changes from the jsonplaceholder placeholder text to "Data provided by Bermuda BLE Trilateration". The title names the primary change, and the fix prefix fits the behavior change. The 'integration_blueprint' label is slightly indirect, but the parenthetical URL makes the target clear.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: 0990cca3-a9a1-4e1f-b29a-660fdbc80167
Commits
Reviewing files that changed from the base of the PR and between cc780ea and 65646ec.
Files selected for processing: 1
custom_components/bermuda/const.py
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
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
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.
Summary
ATTRIBUTIONinconst.pystill holds the placeholder from theintegration_blueprinttemplate:Bermuda never contacts that site. The string is only used as the
attributionattribute on every entity (entity.py), so each Bermuda entity currently credits an unrelated placeholder API. Security scanners that read the shipped code also flag it as an unencrypted (http://) endpoint, which makes the integration look like it sends data off the machine when it doesn't.This PR replaces it with
"Data provided by Bermuda BLE Trilateration". The constant name and its use inentity.pyare unchanged.Behavior change
None beyond the text of the
attributionstate attribute.Testing
grep -rn jsonplaceholderfinds nothing in the repo after the change.ruff format --checkpasses on the changed file.ruff check(pinned 0.17.4) reports the same 3 findings onconst.pywith and without this change; they are on unrelated lines.Summary by CodeRabbit