Allow downloading site data as diagnostics

This commit is contained in:
2022-10-16 22:19:01 +02:00
parent 85190aa9dd
commit 1812642773
6 changed files with 34 additions and 6 deletions

View 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()