core/homeassistant/helpers/service_info/dhcp.py

15 lines
280 B
Python

"""DHCP discovery data."""
from dataclasses import dataclass
from homeassistant.data_entry_flow import BaseServiceInfo
@dataclass(slots=True)
class DhcpServiceInfo(BaseServiceInfo):
"""Prepared info from dhcp entries."""
ip: str
hostname: str
macaddress: str