Don't warn if octoprint completion is null (#6719)

This commit is contained in:
Jeff Wilson authored and Paulus Schoutsen committed 2017-03-20 09:00:45 -07:00
1 parent 9a305c9742
commit be15ca3f23
1 file changed
+1 -1
+1 -1
View File
@@ -127,6 +127,6 @@ class OctoPrintSensor(Entity):
# Error calling the api, already logged in api.update()
return
if self._state is None:
if self._state is None and self.sensor_type != "completion":
_LOGGER.warning("Unable to locate value for %s", self.sensor_type)
return