🐛 Fix a key error

This commit is contained in:
Gina Häußge committed 2019-09-19 13:08:56 +02:00
1 parent dc519e0aff
commit d796d34a8a
1 file changed
+2
+2
View File
@@ -762,6 +762,8 @@ class Printer(PrinterInterface,
latest_temperature = self._temperature_history[-1]
for key, value in latest_temperature.items():
if key == "time":
continue
result[key] = dict(actual=value["actual"],
target=value["target"],
offset=offsets.get(key, 0))