1 """The pi_hole component."""
3 from __future__
import annotations
10 DataUpdateCoordinator,
13 from .const
import DOMAIN
17 """Representation of a Pi-hole entity."""
22 coordinator: DataUpdateCoordinator[
None],
24 server_unique_id: str,
26 """Initialize a Pi-hole entity."""
34 """Return the device information of the entity."""
36 config_url = f
"https://{self.api.host}/{self.api.location}"
38 config_url = f
"http://{self.api.host}/{self.api.location}"
43 manufacturer=
"Pi-hole",
44 configuration_url=config_url,
None __init__(self, Hole api, DataUpdateCoordinator[None] coordinator, str name, str server_unique_id)
DeviceInfo device_info(self)