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

This commit is contained in:
Jeff Wilson 2017-03-20 12:00:45 -04:00 committed by Paulus Schoutsen
parent 9a305c9742
commit be15ca3f23

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