mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Fixes for add by IP
This commit is contained in:
parent
0263a9a9f5
commit
ac177659e5
2 changed files with 8 additions and 3 deletions
|
@ -1,12 +1,15 @@
|
|||
# Copyright (c) 2019 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
from typing import Dict, Any
|
||||
|
||||
from ..BaseModel import BaseModel
|
||||
|
||||
|
||||
## Class representing the system status of a printer.
|
||||
class PrinterSystemStatus(BaseModel):
|
||||
|
||||
def __init__(self, guid: str, firmware: str, hostname: str, name: str, platform: str, variant: str, **kwargs
|
||||
def __init__(self, guid: str, firmware: str, hostname: str, name: str, platform: str, variant: str,
|
||||
hardware: Dict[str, Any], **kwargs
|
||||
) -> None:
|
||||
self.guid = guid
|
||||
self.firmware = firmware
|
||||
|
@ -14,4 +17,5 @@ class PrinterSystemStatus(BaseModel):
|
|||
self.name = name
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.hardware = hardware
|
||||
super().__init__(**kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue