Use enum sensor device class in PrusaLink (#83107)
This commit is contained in:
parent
a63dd811dd
commit
b40923a4cd
5 changed files with 38 additions and 12 deletions
|
@ -59,7 +59,9 @@ SENSORS: dict[str, tuple[PrusaLinkSensorEntityDescription, ...]] = {
|
|||
if flags["printing"]
|
||||
else "idle"
|
||||
),
|
||||
device_class="prusalink__printer_state",
|
||||
device_class=SensorDeviceClass.ENUM,
|
||||
options=["cancelling", "idle", "paused", "pausing", "printing"],
|
||||
translation_key="printer_state",
|
||||
),
|
||||
PrusaLinkSensorEntityDescription[PrinterInfo](
|
||||
key="printer.telemetry.temp-bed",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue