Code Monkey home page Code Monkey logo

github-custom-component-tutorial's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

github-custom-component-tutorial's Issues

unsub_options_update_listener reference?

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?

pythonpackage.yaml no longer works

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?

Bug in pythonpackage.yaml in the blog post

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?

Tutorial seems from 2020, how much has changed?

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

Thanks for your help!

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.