mirror of
https://github.com/micahqcade/custom_vesync.git
synced 2025-02-11 09:39:00 +01:00
fix diagnostics.
This commit is contained in:
parent
72245c95c3
commit
d9056f7f12
85
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
Normal file
85
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
Normal file
@ -0,0 +1,85 @@
|
||||
name: Bug Report
|
||||
description: Create a report to help us improve the integration
|
||||
labels: [bug]
|
||||
body:
|
||||
|
||||
- type: textarea
|
||||
validations:
|
||||
required: true
|
||||
attributes:
|
||||
label: The problem
|
||||
description: >-
|
||||
Describe the issue you are experiencing here to communicate to the
|
||||
maintainers. Tell us what you were trying to do and what happened.
|
||||
|
||||
Provide a clear and concise description of what the problem is. What did you expect to happen?
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Environment
|
||||
|
||||
- type: input
|
||||
id: version
|
||||
validations:
|
||||
required: true
|
||||
attributes:
|
||||
label: What version of this integration has the issue?
|
||||
placeholder: 2.5.0
|
||||
description: >
|
||||
Can be found in the Configuration panel -> Info.
|
||||
|
||||
- type: input
|
||||
id: ha_version
|
||||
validations:
|
||||
required: true
|
||||
attributes:
|
||||
label: What version of Home Assistant Core has the issue?
|
||||
placeholder: core-
|
||||
description: >
|
||||
Can be found in the Configuration panel -> Info.
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Device
|
||||
|
||||
- type: textarea
|
||||
id: vesync_diagnostics
|
||||
validations:
|
||||
required: true
|
||||
attributes:
|
||||
label: Diagnostics
|
||||
placeholder: "{}"
|
||||
description: >
|
||||
Can be found in the Configuration panel -> Integrations -> VeSync -> Diagnostics
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Details
|
||||
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: Home Assistant log
|
||||
description: Enable debug logging and paste your full log here. Don't forget to redact sensitive information.
|
||||
value: |
|
||||
<details><summary>Logs</summary>
|
||||
|
||||
```py
|
||||
Copy/paste any log here, between the starting and ending backticks.
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
- type: textarea
|
||||
id: additional-information
|
||||
attributes:
|
||||
label: Additional information
|
||||
description: If you have any additional information for us, use the field below. Please note, you can attach screenshots or screen recordings here, by dragging and dropping files in the field below.
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for taking the time to fill out this bug report!
|
56
.github/ISSUE_TEMPLATE/unsupported_device.yaml
vendored
Normal file
56
.github/ISSUE_TEMPLATE/unsupported_device.yaml
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
name: Unsupported Device
|
||||
description: Let's have a look if we can support your device
|
||||
title: "Add support for ..."
|
||||
labels: [new-device]
|
||||
body:
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Device
|
||||
|
||||
- type: textarea
|
||||
id: unsupported_device_log
|
||||
attributes:
|
||||
label: Home Assistant log
|
||||
description: Enable [debug logging](https://github.com/iMicknl/ha-tahoma#enable-debug-logging) and paste your full log here. We redact your id's and emailaddresses by default.
|
||||
value: |
|
||||
<details><summary>Logs</summary>
|
||||
|
||||
```
|
||||
Copy/paste any log here, between the starting and ending backticks. The first log line must start with "Added device (Device...".
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
- type: textarea
|
||||
id: device_command_log
|
||||
validations:
|
||||
required: true
|
||||
attributes:
|
||||
label: Device commands
|
||||
description: In order to gather more information, you can use the `tahoma.get_execution_history` service which will print your execution history to the Home Assistant log. Run the commands via the official vendor app (e.g. TaHoma) and capture the commands. [Read more](https://github.com/iMicknl/ha-tahoma#device-not-working-correctly).
|
||||
value: |
|
||||
<details><summary>Commands logs</summary>
|
||||
|
||||
```
|
||||
Copy/paste your execution history here.
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Details
|
||||
|
||||
- type: textarea
|
||||
id: additional-information
|
||||
attributes:
|
||||
label: Additional information
|
||||
description: If you have any additional information for us, use the field below. Please note, you can attach screenshots or screen recordings here, by dragging and dropping files in the field below.
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for taking the time to fill out this request!
|
@ -18,6 +18,10 @@ async def async_get_config_entry_diagnostics(
|
||||
for type in ["fans", "outlets", "switches", "bulbs"]:
|
||||
for d in data["manager"]._dev_list[type]:
|
||||
devices[type].append(
|
||||
{"device": d.config_dict, "config": d.config, "details": d.details}
|
||||
{
|
||||
"device": d.config_dict or {},
|
||||
"config": d.config or {},
|
||||
"details": d.details or {},
|
||||
}
|
||||
)
|
||||
return devices
|
||||
|
Loading…
x
Reference in New Issue
Block a user