name: Bug report / 报告问题
description: Create a report to help us improve. / 报告问题以帮助我们改进
body:
  - type: input
    attributes:
      label: Describe the Bug / 描述问题
      description: |
        > A clear and concise description of what the bug is.
        > 清晰且简明地描述问题。
    validations:
      required: true

  - type: textarea
    attributes:
      label: How to Reproduce / 复现步骤
      description: |
        > If applicable, add screenshots to help explain your problem. You can attach images by clicking this area to highlight it and then dragging files in. Steps to reproduce the behavior:
        > 如有需要,可添加截图以帮助解释问题。点击此区域以高亮显示并拖动截图文件以上传。请详细描述复现步骤:
      placeholder: |
        1. Go to ...
        2. Click on ...
        3. Scroll down to ...
        4. See error
    validations:
      required: true

  - type: input
    attributes:
      label: Expected Behavior / 预期结果
      description: |
        > A clear and concise description of what you expected to happen.
        > 描述预期结果。
    validations:
      required: true

  - type: textarea
    attributes:
      label: Home Assistant Logs / 系统日志
      description: |
        > [Settings > System > Logs > DOWNLOAD FULL LOG](https://my.home-assistant.io/redirect/logs) > Filter `xiaomi_home`
        > [设置 > 系统 > 日志 > 下载完整日志](https://my.home-assistant.io/redirect/logs) > 筛选 `xiaomi_home`

  - type: input
    attributes:
      label: Home Assistant Core Version / Home Assistant Core 版本
      description: |
        > [Settings > About](https://my.home-assistant.io/redirect/info)
        > [设置 > 关于 Home Assistant](https://my.home-assistant.io/redirect/info)
      placeholder: "2024.11.0"
    validations:
      required: true

  - type: input
    attributes:
      label: Home Assistant Operation System Version / Home Assistant Operation System 版本
      description: |
        > [Settings > About](https://my.home-assistant.io/redirect/info)
        > [设置 > 关于 Home Assistant](https://my.home-assistant.io/redirect/info)
      placeholder: "13.0"
    validations:
      required: true

  - type: input
    attributes:
      label: Xiaomi Home Integration Version / 米家集成版本
      description: |
        > [Settings > Devices & services > Configured > `Xiaomi Home`](https://my.home-assistant.io/redirect/integration/?domain=xiaomi_home)
        > [设置 > 设备与服务 > 已配置 > `Xiaomi Home`](https://my.home-assistant.io/redirect/integration/?domain=xiaomi_home)
      placeholder: "v0.1.0"
    validations:
      required: true

  - type: textarea
    attributes:
      label: Additional Context / 其他说明