Ensure that all material configs are added to the list

CURA-8463
This commit is contained in:
Jaime van Kessel 2022-08-30 16:33:29 +02:00
parent 6fed6b824c
commit e2ba110cf7
No known key found for this signature in database
GPG key ID: C85F7A3AF1BAA7C4
4 changed files with 26 additions and 6 deletions

View file

@ -0,0 +1,14 @@
# Copyright (c) 2019 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Optional, List
from .CloudClusterResponse import CloudClusterResponse
from .ClusterPrinterStatus import ClusterPrinterStatus
class CloudClusterWithConfigResponse(CloudClusterResponse):
"""Class representing a cloud connected cluster."""
def __init__(self, **kwargs) -> None:
self.configuration = self.parseModel(ClusterPrinterStatus, kwargs.get("host_printer"))
super().__init__(**kwargs)