Skip to content

Add package data attribute to 17track.net summary sensors#19213

Merged
MartinHjelmare merged 2 commits intohome-assistant:devfrom
bachya:17track-updates
Dec 12, 2018
Merged

Add package data attribute to 17track.net summary sensors#19213
MartinHjelmare merged 2 commits intohome-assistant:devfrom
bachya:17track-updates

Conversation

@bachya
Copy link
Copy Markdown
Contributor

@bachya bachya commented Dec 12, 2018

Description:

From a forum request: users want 17track.net summary sensors to include a JSON attribute containing the packages applicable to that status (for easier display via a table card in Lovelace). This PR takes care of that.

The PR also fixes an issue wherein 17track.net sensors couldn't be used in Jinja templates because of their entity ID.

BREAKING CHANGE: In order to fix the below bug, default entity_ids will change (for example, sensor.17track_packages_delivered will change to sensor.seventeentrack_packages_delivered).

Related issue (if applicable): fixes #19212

Pull request in home-assistant.io with documentation (if applicable): N/A

Example entry for configuration.yaml (if applicable):

sensor:
  - platform: seventeentrack
    username: !secret 17track_email
    password: !secret 17track_password

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

@bachya bachya self-assigned this Dec 12, 2018
@ghost ghost added the in progress label Dec 12, 2018
@fabaff fabaff changed the title 17track.net: Add package data attribute to summary sensors Add package data attribute to 17track.net summary sensors Dec 12, 2018
@MartinHjelmare MartinHjelmare merged commit f8438e9 into home-assistant:dev Dec 12, 2018
@ghost ghost removed the in progress label Dec 12, 2018
@bachya bachya deleted the 17track-updates branch December 12, 2018 18:43
dshokouhi pushed a commit to dshokouhi/home-assistant that referenced this pull request Dec 25, 2018
…tant#19213)

* 17track.net: Add package data attribute to summary sensors

* Member comments
@balloob balloob mentioned this pull request Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

17track sensors cannot be used in Jinja templates

3 participants