Home Assistant 中文网
  • 快速开始
  • 组件
  • 使用文档
  • 范例
  • 开发文档
  • 博客
  • 需要帮助?
  • 中文论坛
  • 英文官网

Asyncio 101


If you are not familiar yet with asyncio, please watch the below video. It’s a great introduction by Robert Smallshire in how and why asyncio works the way it does.

Next step: Categorizing Functions »

Edit this page on GitHub

Development Guide

  • Introduction
    • Architecture
    • Components
  • Starting with Development
    • Setting up Environment
    • Submit your Work
    • Checklist
    • Style guidelines
    • Testing
    • Catching up with Reality
    • Validation
  • Development 101
    • Hass object
    • Events
    • States
    • Services
    • Config
  • Creating a new platform (to support a new device)
    • Checklist creating a platform
    • Example sensor platform
    • Example light platform
  • Adding a new component
    • Checklist creating a component
    • Loading components
    • Requirements & Dependencies
    • Handling events
    • States
    • Visibility
    • Loading Platforms
    • Component Discovery
  • Intents (handling voice responses)
    • Firing intents
    • Handling intents
    • Registering sentences
  • Asynchronous Programming
    • Introduction to asyncio
    • Categorizing Functions
    • Working with Async
    • Miscellaneous
  • Frontend Development
    • Add State Card
    • Add More Info Dialog
    • Add Custom Panels
    • Add Custom UI
  • Hass.io architecture
    • Debugging Hass.io
  • Hass.io Add-on Development
    • Tutorial: Making your first add-on
    • Configuration
    • Local Testing
    • Publishing
    • Repositories
  • API
    • Python API
    • Websocket API
    • REST API
    • Python REST API
    • Server-sent events
  • Online helpers
  • Home-Assistant.io
  • Releasing
  • Maintenance
  • Governance
    • Contributor License Agreement
    • Code of Conduct
    • Credits
    • License
Contact us at hello@home-assistant.io (no support!).
Website powered by Jekyll and the Oscalite theme.
Hosted by GitHub and served by CloudFlare.
Creative Commons License
home-assistant.io is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.