https://github.com/alandtse/pr_custom_component

Create a custom component from a Home Assistant Integration Pull Request. Use this when you want to test a pull request that changes a built in integration.

https://github.com/alandtse/pr_custom_component

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.4%) to scientific vocabulary

Keywords

custom-component hacktoberfest home-assistant
Last synced: 10 months ago · JSON representation

Repository

Create a custom component from a Home Assistant Integration Pull Request. Use this when you want to test a pull request that changes a built in integration.

Basic Info
  • Host: GitHub
  • Owner: alandtse
  • License: apache-2.0
  • Language: Python
  • Default Branch: dev
  • Homepage:
  • Size: 515 KB
Statistics
  • Stars: 11
  • Watchers: 3
  • Forks: 5
  • Open Issues: 5
  • Releases: 8
Topics
custom-component hacktoberfest home-assistant
Created over 5 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Contributing License

README.md

PR Custom Component

GitHub Release GitHub all releases GitHub release (latest by SemVer) GitHub Activity

License

hacs Project Maintenance BuyMeCoffee

Discord Community Forum

Create a custom component from a Home Assistant Integration Pull Request. Use this when you want to test a pull request that changes a built in integration.

Warning: This is experimental and may fail if the Pull Request is for a substantially different version of HA or modifies more than the integration. Do not report bugs to the core authors!

| Platform | Description | | --------------- | --------------------------------------------------------------- | | update | Enables Updates if the Pull request has changed | | sensor | Show's the timestamp of the last change to the Pull Request | | switch | Enable to automatically update to the latest on the next check. |

Installation

  1. Use HACS after adding this https://github.com/alandtse/pr_custom_component as a custom repository. Skip to 7.
  2. If no HACS, use the tool of choice to open the directory (folder) for your HA configuration (where you find configuration.yaml).
  3. If you do not have a custom_components directory (folder) there, you need to create it.
  4. In the custom_components directory (folder) create a new folder called pr_custom_component.
  5. Download all the files from the custom_components/pr_custom_component/ directory (folder) in this repository.
  6. Place the files you downloaded in the new directory (folder) you created.
  7. Restart Home Assistant.
  8. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "PR Custom Component"

Using your HA configuration directory (folder) as a starting point you should now also have this:

text custom_components/pr_custom_component/translations/en.json custom_components/pr_custom_component/__init__.py custom_components/pr_custom_component/api.py custom_components/pr_custom_component/config_flow.py custom_components/pr_custom_component/const.py custom_components/pr_custom_component/manifest.json custom_components/pr_custom_component/sensor.py custom_components/pr_custom_component/update.py custom_components/pr_custom_component/switch.py

Installing an Auto Generated Custom Component

  1. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "PR Custom Component".
  2. Provide the URL of the pull request you want to turn into a custom_component. > For example, this will get a Tesla Pull Request: https://github.com/home-assistant/core/pull/46558
  3. After succesful install, you should see the PR Custom Component with title Tesla.
  4. Restart Home Assistant to enable the Tesla Custom Component to override the default.
  5. Hard refresh your browser to download any changes strings.
  6. Install Tesla Custom Component which has replaced the built in component.

Upgrading an Auto Generated Custom Component

  1. When an update is available, it will appear at the top of the Settings tab in Home Assistant. Click the update notification, then click Update to automatically download the latest files from the Pull Request.

You can choose to skip the update, but keep in mind that the component will still be updated automatically when the integration is reloaded or Home Assistant is restarted.

  1. Restart Home Assistant.

Uninstalling an Auto Generated Custom Component

This uses Tesla as an example.

  1. In the HA UI go to "Configuration" -> "Integrations", select the Tesla Component's ... menu and delete. This will uninstall the configured Tesla custom component from the HA instance.
  2. Select the PR Custom Component with title Tesla Component's ... menu and delete. This will delete custom files and restore the default).
  3. Restart Home Assistant.
  4. Hard refresh your browser

Contributions are welcome!

If you want to contribute to this please read the Contribution guidelines

Logo

The logo is a modified Pull request icon under MIT.

Component built with integration_blueprint.


Owner

  • Name: Alan Tse
  • Login: alandtse
  • Kind: user

GitHub Events

Total
  • Create event: 1
  • Issues event: 2
  • Release event: 1
  • Watch event: 1
  • Issue comment event: 5
  • Push event: 13
  • Pull request review comment event: 2
  • Pull request review event: 3
  • Pull request event: 11
  • Fork event: 1
Last Year
  • Create event: 1
  • Issues event: 2
  • Release event: 1
  • Watch event: 1
  • Issue comment event: 5
  • Push event: 13
  • Pull request review comment event: 2
  • Pull request review event: 3
  • Pull request event: 11
  • Fork event: 1

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 8
  • Total pull requests: 22
  • Average time to close issues: 6 months
  • Average time to close pull requests: 1 day
  • Total issue authors: 4
  • Total pull request authors: 4
  • Average comments per issue: 0.38
  • Average comments per pull request: 0.82
  • Merged pull requests: 17
  • Bot issues: 0
  • Bot pull requests: 5
Past Year
  • Issues: 1
  • Pull requests: 5
  • Average time to close issues: N/A
  • Average time to close pull requests: 5 days
  • Issue authors: 1
  • Pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 1.0
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • alandtse (5)
  • andyblac (1)
  • Lesekater (1)
  • enricobattocchi (1)
Pull Request Authors
  • alandtse (12)
  • dependabot[bot] (5)
  • Lesekater (3)
  • andyblac (1)
Top Labels
Issue Labels
enhancement (1) help wanted (1) good first issue (1)
Pull Request Labels
dependencies (5)

Dependencies

poetry.lock pypi
  • 112 dependencies
pyproject.toml pypi
  • bandit ^1.7.0 develop
  • black ^20.8b1 develop
  • homeassistant ^2021.3.4 develop
  • mypy ^0.812 develop
  • pre-commit ^2.11.1 develop
  • prospector ^1.3.1 develop
  • pydocstyle ^6.0.0 develop
  • pytest-homeassistant-custom-component 0.1.0 develop
  • aiofiles ^0.6.0
  • aiohttp ^3.7.4
  • async-timeout ^3.0.1
  • python ^3.8
  • voluptuous ^0.12.1
  • yarl ^1.6.3
.github/workflows/codeql.yml actions
  • actions/checkout v2 composite
  • github/codeql-action/analyze v1 composite
  • github/codeql-action/autobuild v1 composite
  • github/codeql-action/init v1 composite
.github/workflows/cron.yml actions
  • actions/checkout v2 composite
  • hacs/action main composite
  • home-assistant/actions/hassfest master composite
.github/workflows/pull.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
  • hacs/action main composite
  • home-assistant/actions/hassfest master composite
.github/workflows/push.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
  • hacs/action main composite
  • home-assistant/actions/hassfest master composite
.github/workflows/semantic_release.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v1 composite
  • ad-m/github-push-action master composite
  • relekang/python-semantic-release master composite
  • svenstaro/upload-release-action v1-release composite