boralyl / github-custom-component-tutorial Goto Github PK
View Code? Open in Web Editor NEWA tutorial for creating a custom component for Home Assistant using GitHub's API.
License: MIT License
A tutorial for creating a custom component for Home Assistant using GitHub's API.
License: MIT License
Hi Aaron - your tutorial on building a custom component config (and options) flow really helped me out. Thank you so much for putting this together.
One question regarding the options flow coding in __init__.py
- you mention a unsub_options_update_listener
reference: "The add_updated_listener method returns an unsubscribe function that we will store for later so that we can clean up the listener if the config entry is removed by the user."
and the corresponding code:
hass_data["unsub_options_update_listener"] = unsub_options_update_listener
I don't see that referenced anywhere else. Should something be done in async_unload_entry
to remove the update listener? or does that happen automatically by HASS maybe?
I get this error
Error: Unable to process command '::set-env name=PY::cdff5fd5920138f547cdcfe8e449053ac96b7b85b421aa6a9c8e2b6b4a274b31' successfully.
Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
Do you know what I need to update to get it working?
I've found your two posts super useful. Thank you for taking the time to do this write-up!
As I first-time contributor to the Home Assistant project and being new to GitHub Actions I got stuck on the testing section of the 2nd post.
I see the correct pythonpackage.yaml
is in the repo (I didn't think about looking at the repo until after I figured out what the problem was). I thought $
was some kind of shorthand and struggled to find anything about it in the GitHub Actions docs but found the appropriate syntax reading the docs for that specific action.
This is the problematic section:
steps:
- uses: actions/checkout@v1
- name: Set up Python $
uses: actions/setup-python@v1
with:
python-version: $
Would it be possible to amend the blog post?
Hi there,
I wanted to dig into custom components a bit and found your extensive tutorial. As it has a timestamp of 2020, I am wondering how much has changed in the meantime?
Would you say the concepts still apply and it's a solid starting point?
Bye,
Jo
I've downloaded the full folder. Copied the "github_custom" folder and I get an error 500: Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble
Am I doing something wrong?
Thanks,
M
I'd like to express my gratitude for sharing your guide on building a custom component. As I'm not a Python developer, I encountered some difficulties understanding certain aspects in the documentation. However, after following your tutorial, I was able to successfully implement an integration for my alarm central.
Here is the repository: https://github.com/merencia/amt8000-hass-integration
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.