File: model.py

package info (click to toggle)
python-altruistclient 0.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 220 kB
  • sloc: python: 198; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 334 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Module for Altruist device model."""

from dataclasses import dataclass

from zeroconf.asyncio import AsyncServiceInfo


@dataclass
class AltruistDeviceModel:
    """Data class for storing information about an Altruist device."""

    id: str
    ip_address: str
    name: str = "Altruist Sensor"
    fw_version: str | None = None