Skip to content

Commit

Permalink
Fix coodinator data entry
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius committed Dec 10, 2024
1 parent 23a5abb commit 95d6fd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/livebox/diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Diagnostics support for Livebox."""

from __future__ import annotations

import logging
Expand All @@ -9,7 +10,6 @@
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant

from .const import DOMAIN

TO_REDACT = {
"address",
Expand Down Expand Up @@ -112,7 +112,7 @@ async def async_get_config_entry_diagnostics(
hass: HomeAssistant, entry: ConfigEntry
) -> dict[str, Any]:
"""Return diagnostics for a config entry."""
coordinator = hass.data[DOMAIN][entry.entry_id]
coordinator = entry.runtime_data
api_methods = [
coordinator.api.async_get_permissions,
coordinator.api.deviceinfo.async_get_deviceinfo,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/livebox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"friendlyName": "Orange Livebox"
}
],
"version": "2.3.8"
"version": "2.3.9"
}

0 comments on commit 95d6fd0

Please sign in to comment.