Allow downloading site data as diagnostics
This commit is contained in:
6
custom_components/plejd/diagnostics.py
Normal file
6
custom_components/plejd/diagnostics.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from . import pyplejd
|
||||
|
||||
async def async_get_config_entry_diagnostics(hass, config_entry):
|
||||
plejdManager = pyplejd.PlejdManager(config_entry.data)
|
||||
|
||||
return await plejdManager.get_site_data()
|
||||
Reference in New Issue
Block a user