diff --git a/haco/constants.py b/haco/constants.py index ad1dc52..c171ab3 100644 --- a/haco/constants.py +++ b/haco/constants.py @@ -3,7 +3,6 @@ from haco.paths import paths STATUS = 'status' HOSTNAME = net.get_hostname().lower() -F = net.get_fqdn() MAC = net.MAC() CLIENT_ID = f'{HOSTNAME}-{MAC.hex}' @@ -11,7 +10,3 @@ CLIENT_ID = f'{HOSTNAME}-{MAC.hex}' TOPIC_ROOT = Path(paths.name) / env.CHANNEL TOPIC_CLIENT = TOPIC_ROOT / CLIENT_ID TOPIC_AVAIL = TOPIC_CLIENT / STATUS -MQTT_HOST = "mqtt.service" -MQTT_PORT = 1883 -MQTT_USERNAME = "user" -MQTT_PASSWORD = None diff --git a/haco/device.py b/haco/device.py index 0f1fa0a..cc25594 100644 --- a/haco/device.py +++ b/haco/device.py @@ -15,8 +15,9 @@ if TYPE_CHECKING: @dataclass(kw_only=True) class Device(Base): name: str - manufacturer: str = "Demo" - model: str = "Python MQTT Example" + manufacturer: str | None = None + model: str | None = None + sw_version: str | None = None identifiers: list[str] | None = field(default=None, init=False) diff --git a/haco/version b/haco/version index 327101e..51c467e 100644 --- a/haco/version +++ b/haco/version @@ -1 +1 @@ -0.1.0-alpha004 \ No newline at end of file +0.1.0-alpha005 \ No newline at end of file