File: __init__.py

package info (click to toggle)
devolo-plc-api 1.5.1%2Bgit20260208.5d3989e-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 504 kB
  • sloc: python: 1,616; makefile: 6
file content (22 lines) | stat: -rw-r--r-- 478 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""Zeroconf dataclasses."""

from __future__ import annotations

from dataclasses import dataclass, field


@dataclass
class ZeroconfServiceInfo:
    """Prepared info from mDNS entries."""

    address: bytes = b""
    """IP address of the device."""

    port: int | None = None
    """mDNS port to use."""

    hostname: str = ""
    """mDNS hostname of the device."""

    properties: dict[str, str] = field(default_factory=dict)
    """Properties provided by the device."""