Add diagnostics for screenlogic (#67368)
This commit is contained in:
parent
148762ce3f
commit
974296697e
2 changed files with 22 additions and 0 deletions
21
homeassistant/components/screenlogic/diagnostics.py
Normal file
21
homeassistant/components/screenlogic/diagnostics.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
"""Diagnostics for Screenlogic."""
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from . import ScreenlogicDataUpdateCoordinator
|
||||
from .const import DOMAIN
|
||||
|
||||
|
||||
async def async_get_config_entry_diagnostics(
|
||||
hass: HomeAssistant, config_entry: ConfigEntry
|
||||
) -> dict:
|
||||
"""Return diagnostics for a config entry."""
|
||||
coordinator: ScreenlogicDataUpdateCoordinator = hass.data[DOMAIN][
|
||||
config_entry.entry_id
|
||||
]
|
||||
|
||||
return {
|
||||
"config_entry": config_entry.as_dict(),
|
||||
"data": coordinator.data,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue