Skip to content

fix: drop integration_blueprint placeholder attribution (jsonplaceholder URL) - #910

Open
JustBeanie wants to merge 1 commit into
agittins:mainfrom
JustBeanie:fix/attribution-template-leftover
Open

JustBeanie wants to merge 1 commit into
agittins:mainfrom
JustBeanie:fix/attribution-template-leftover

Conversation

@JustBeanie

@JustBeanie JustBeanie commented Dec 2, 2026 •

Copy link
Copy Markdown

Summary

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.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The ATTRIBUTION value now identifies Bermuda BLE Trilateration as the data provider instead of JSONPlaceholder.

Changes: Attribution label update

Layer / File(s) Summary
Update attribution text
custom_components/bermuda/const.py
ATTRIBUTION now names Bermuda BLE Trilateration.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: agittins

Merge Risk: Minimal · up to 65646

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • 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.

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.

1 participant