MatthewFlamm / pytest-homeassistant-custom-component

Package to automatically extract testing plugins from Home Assistant for custom component testing
MIT License
66 stars 10 forks source link

Feature request: Add diagnostics helper functions #194

Open golles opened 5 months ago

golles commented 5 months ago

Would it be possible to include get_diagnostics_for_config_entry and _get_diagnostics_for_config_entry? (and maybe also get_diagnostics_for_device and _get_diagnostics_for_device) from https://github.com/home-assistant/core/blob/dev/tests/components/diagnostics/__init__.py

In my component, I've added a test for diagnostics and had to copy the 2 mentioned functions from HA into my project (but maybe there is a better way that I'm not aware of?)